Package org.tudalgo.algoutils.reflect
Class ParameterMatcher
java.lang.Object
org.tudalgo.algoutils.reflect.IdentifierMatcher
org.tudalgo.algoutils.reflect.ParameterMatcher
A parameter matcher based on
IdentifierMatcher.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanThe indicator whether to also match subtypes derived fromparameterType.Class<?>The expected parameter type.Fields inherited from class org.tudalgo.algoutils.reflect.IdentifierMatcher
identifierName, packageName, similarity -
Constructor Summary
ConstructorsConstructorDescriptionParameterMatcher(Class<?> parameterType) Constructs and initializes an attribute matcher to match the specified attribute.ParameterMatcher(Class<?> parameterType, boolean allowSubTypes) Constructs and initializes an attribute matcher to match the specified attribute.ParameterMatcher(String identifierName, double similarity, Class<?> parameterType) Constructs and initializes an attribute matcher to match the specified attribute.ParameterMatcher(String identifierName, double similarity, Class<?> parameterType, boolean allowSubTypes) Constructs and initializes an attribute matcher to match the specified attribute. -
Method Summary
-
Field Details
-
parameterType
The expected parameter type. -
allowSubTypes
public boolean allowSubTypesThe indicator whether to also match subtypes derived fromparameterType.
-
-
Constructor Details
-
ParameterMatcher
public ParameterMatcher(String identifierName, double similarity, Class<?> parameterType, boolean allowSubTypes) Constructs and initializes an attribute matcher to match the specified attribute.- Parameters:
identifierName- the identifier name to matchsimilarity- the minimum required similarityparameterType- the expected parameter typeallowSubTypes- the indicator whether to also match subtypes derived fromparameterType
-
ParameterMatcher
Constructs and initializes an attribute matcher to match the specified attribute.- Parameters:
identifierName- the identifier name to matchsimilarity- the minimum required similarityparameterType- the expected parameter type
-
ParameterMatcher
Constructs and initializes an attribute matcher to match the specified attribute.- Parameters:
parameterType- the expected parameter type
-
ParameterMatcher
Constructs and initializes an attribute matcher to match the specified attribute.- Parameters:
parameterType- the expected parameter typeallowSubTypes- the indicator whether to also match subtypes derived fromparameterType
-