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

Method getFields

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

Returns all FieldNodes declared in this ClassNode, including inherited fields. If this node is a proxy (has a redirect), the call is forwarded to the redirect target. The returned list includes fields from this class only, not from super classes. @return an unmodifiable or mutable list of {

()

Source from the content-addressed store, hash-verified

990 * @see FieldNode
991 */
992 public List<FieldNode> getFields() {
993 if (redirect != null)
994 return redirect.getFields();
995 lazyClassInit();
996 if (fields == null)
997 fields = new ArrayList<>();
998 return fields;
999 }
1000
1001 /**
1002 * Returns all {@link PropertyNode}s declared in this ClassNode. If this node is a proxy

Callers 15

testArrayClassMethod · 0.95
findClassMemberMethod · 0.95
visitContentsMethod · 0.95
visitClassDeclarationMethod · 0.95
addMethodsMethod · 0.45
addInitMethod · 0.45

Calls 1

lazyClassInitMethod · 0.95

Tested by 1

testArrayClassMethod · 0.76