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

Method getProperty

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

Finds a PropertyNode matching the given name in this ClassNode. This method searches through the properties list, comparing by name. Only direct properties of this class are searched, not inherited ones. @param name the name of the property to find @return the PropertyNode with the

(String name)

Source from the content-addressed store, hash-verified

1055 * @see #getProperties()
1056 */
1057 public PropertyNode getProperty(String name) {
1058 return getProperties().stream().filter(pn -> pn.getName().equals(name)).findFirst().orElse(null);
1059 }
1060
1061 /**
1062 * Returns all {@link MethodNode}s declared in this ClassNode, including inherited and synthetic methods.

Callers 6

findClassMemberMethod · 0.95
sourceOfMethod · 0.95
visitMethod · 0.95
visitMethod · 0.95
existsPropertyMethod · 0.95
findPropertyMethod · 0.95

Calls 7

getPropertiesMethod · 0.95
findFirstMethod · 0.80
filterMethod · 0.65
streamMethod · 0.65
equalsMethod · 0.65
getNameMethod · 0.65
orElseMethod · 0.45

Tested by

no test coverage detected