Package org.tudalgo.algoutils.reflect
Class AttributeMatcher
java.lang.Object
org.tudalgo.algoutils.reflect.IdentifierMatcher
org.tudalgo.algoutils.reflect.AttributeMatcher
An attribute Matcher based on
IdentifierMatcher.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanThe indicator whether to also match super implementations.intThe expected access modifier.Class<?>The expected attribute type.Fields inherited from class org.tudalgo.algoutils.reflect.IdentifierMatcher
identifierName, packageName, similarity -
Constructor Summary
ConstructorsConstructorDescriptionAttributeMatcher(String name, double similarity, int modifier, Class<?> type) Constructs and initializes an attribute matcher to match the specified attribute with no super implementation match.AttributeMatcher(String name, double similarity, int modifier, Class<?> type, boolean allowSuperClass) Constructs and initializes an attribute matcher to match the specified attribute.AttributeMatcher(String name, double similarity, Class<?> type) Constructs and initializes an attribute matcher to match the specified attribute with no super implementation match.AttributeMatcher(String name, double similarity, Class<?> type, boolean allowSuperClass) Constructs and initializes an attribute matcher to match the specified attribute. -
Method Summary
-
Field Details
-
modifier
public int modifierThe expected access modifier. -
type
The expected attribute type. -
allowSuperClass
public boolean allowSuperClassThe indicator whether to also match super implementations.
-
-
Constructor Details
-
AttributeMatcher
public AttributeMatcher(String name, double similarity, int modifier, Class<?> type, boolean allowSuperClass) Constructs and initializes an attribute matcher to match the specified attribute.- Parameters:
name- the attribute name to matchsimilarity- the minimum required similaritymodifier- the expected access modifiertype- the expected attribute typeallowSuperClass- the indicator whether to also match super implementations
-
AttributeMatcher
Constructs and initializes an attribute matcher to match the specified attribute with no super implementation match.- Parameters:
name- the attribute name to matchsimilarity- the minimum required similaritymodifier- the expected access modifiertype- the expected attribute type
-
AttributeMatcher
Constructs and initializes an attribute matcher to match the specified attribute.- Parameters:
name- the attribute name to matchsimilarity- the minimum required similaritytype- the expected attribute typeallowSuperClass- the indicator whether to also match super implementations
-
AttributeMatcher
Constructs and initializes an attribute matcher to match the specified attribute with no super implementation match.- Parameters:
name- the attribute name to matchsimilarity- the minimum required similaritytype- the expected attribute type
-