Class AttributeMatcher

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

@Deprecated(since="0.7.0", forRemoval=true) public class AttributeMatcher extends IdentifierMatcher
Deprecated, for removal: This API element is subject to removal in a future version.
An attribute Matcher based on IdentifierMatcher. This class is deprecated and will be removed in a future release. Use the new API located in the org.tudalgo.algoutils.tutor.general.reflections package instead.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    The indicator whether to also match super implementations.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    The expected access modifier.
    Deprecated, for removal: This API element is subject to removal in a future version.
    The expected attribute type.

    Fields inherited from class org.tudalgo.algoutils.reflect.IdentifierMatcher

    identifierName, packageName, similarity
  • Constructor Summary

    Constructors
    Constructor
    Description
    AttributeMatcher(String name, double similarity, int modifier, Class<?> type)
    Deprecated, for removal: This API element is subject to removal in a future version.
    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)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructs and initializes an attribute matcher to match the specified attribute.
    AttributeMatcher(String name, double similarity, Class<?> type)
    Deprecated, for removal: This API element is subject to removal in a future version.
    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)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructs and initializes an attribute matcher to match the specified attribute.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • modifier

      public int modifier
      Deprecated, for removal: This API element is subject to removal in a future version.
      The expected access modifier.
    • type

      public Class<?> type
      Deprecated, for removal: This API element is subject to removal in a future version.
      The expected attribute type.
    • allowSuperClass

      public boolean allowSuperClass
      Deprecated, for removal: This API element is subject to removal in a future version.
      The indicator whether to also match super implementations.
  • Constructor Details

    • AttributeMatcher

      public AttributeMatcher(String name, double similarity, int modifier, Class<?> type, boolean allowSuperClass)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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