Tests whether a property with the given name exists in this ClassNode. This method searches through the properties list, comparing by name. @param name the name of the property to check @return true if a property with the given name exists, false otherwise @see #getProperty(String)
(String name)
| 1041 | * @see #getProperties() |
| 1042 | */ |
| 1043 | public boolean hasProperty(String name) { |
| 1044 | return getProperties().stream().map(PropertyNode::getName).anyMatch(name::equals); |
| 1045 | } |
| 1046 | |
| 1047 | /** |
| 1048 | * Finds a {@link PropertyNode} matching the given name in this ClassNode. |
nothing calls this directly
no test coverage detected