MCPcopy Index your code
hub / github.com/apache/groovy / addFieldFirst

Method addFieldFirst

src/main/java/org/codehaus/groovy/ast/ClassNode.java:772–774  ·  view source on GitHub ↗

Adds a FieldNode to this ClassNode at the beginning of the field list. This method is similar to #addField(FieldNode) but prepends the field instead of appending it, which can be useful when field declaration order matters. @param node the FieldNode to add first, must not be

(FieldNode node)

Source from the content-addressed store, hash-verified

770 * @see #addField(FieldNode)
771 */
772 public void addFieldFirst(FieldNode node) {
773 addField(node, false);
774 }
775
776 /**
777 * Creates and adds a {@link FieldNode} to the beginning of this ClassNode's field list

Callers 2

addConstructorMethod · 0.45

Calls 2

addFieldMethod · 0.95
redirectMethod · 0.95

Tested by

no test coverage detected