Class AttributeMatcher

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

public class AttributeMatcher extends IdentifierMatcher
An attribute Matcher based on IdentifierMatcher.
See Also:
  • Field Details

    • modifier

      public int modifier
      The expected access modifier.
    • type

      public Class<?> type
      The expected attribute type.
    • allowSuperClass

      public boolean allowSuperClass
      The 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 match
      similarity - the minimum required similarity
      modifier - the expected access modifier
      type - the expected attribute type
      allowSuperClass - the indicator whether to also match super implementations
    • AttributeMatcher

      public AttributeMatcher(String name, double similarity, int modifier, Class<?> type)
      Constructs and initializes an attribute matcher to match the specified attribute with no super implementation match.
      Parameters:
      name - the attribute name to match
      similarity - the minimum required similarity
      modifier - the expected access modifier
      type - the expected attribute type
    • AttributeMatcher

      public AttributeMatcher(String name, double similarity, Class<?> type, boolean allowSuperClass)
      Constructs and initializes an attribute matcher to match the specified attribute.
      Parameters:
      name - the attribute name to match
      similarity - the minimum required similarity
      type - the expected attribute type
      allowSuperClass - the indicator whether to also match super implementations
    • AttributeMatcher

      public AttributeMatcher(String name, double similarity, Class<?> type)
      Constructs and initializes an attribute matcher to match the specified attribute with no super implementation match.
      Parameters:
      name - the attribute name to match
      similarity - the minimum required similarity
      type - the expected attribute type