Class ParameterMatcher

java.lang.Object
org.tudalgo.algoutils.reflect.IdentifierMatcher
org.tudalgo.algoutils.reflect.ParameterMatcher

public class ParameterMatcher extends IdentifierMatcher
A parameter matcher based on IdentifierMatcher.
See Also:
  • Field Details

    • parameterType

      public Class<?> parameterType
      The expected parameter type.
    • allowSubTypes

      public boolean allowSubTypes
      The indicator whether to also match subtypes derived from parameterType.
  • 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 match
      similarity - the minimum required similarity
      parameterType - the expected parameter type
      allowSubTypes - the indicator whether to also match subtypes derived from parameterType
    • ParameterMatcher

      public ParameterMatcher(String identifierName, double similarity, Class<?> parameterType)
      Constructs and initializes an attribute matcher to match the specified attribute.
      Parameters:
      identifierName - the identifier name to match
      similarity - the minimum required similarity
      parameterType - the expected parameter type
    • ParameterMatcher

      public ParameterMatcher(Class<?> parameterType)
      Constructs and initializes an attribute matcher to match the specified attribute.
      Parameters:
      parameterType - the expected parameter type
    • ParameterMatcher

      public ParameterMatcher(Class<?> parameterType, boolean allowSubTypes)
      Constructs and initializes an attribute matcher to match the specified attribute.
      Parameters:
      parameterType - the expected parameter type
      allowSubTypes - the indicator whether to also match subtypes derived from parameterType