Class JavaSearchTypeNameMatch

java.lang.Object
org.aspectj.org.eclipse.jdt.core.search.TypeNameMatch
org.aspectj.org.eclipse.jdt.internal.core.search.JavaSearchTypeNameMatch

public class JavaSearchTypeNameMatch extends TypeNameMatch
Java Search concrete class for a type name match.
Since:
3.3
  • Constructor Details

    • JavaSearchTypeNameMatch

      public JavaSearchTypeNameMatch(IType type, int modifiers)
      Creates a new Java Search type name match.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getAccessibility

      public int getAccessibility()
      Description copied from class: TypeNameMatch
      Returns the accessibility of the type name match
      Specified by:
      getAccessibility in class TypeNameMatch
      Returns:
      the accessibility of the type name which may be IAccessRule.K_ACCESSIBLE, IAccessRule.K_DISCOURAGED or IAccessRule.K_NON_ACCESSIBLE. The default returned value is IAccessRule.K_ACCESSIBLE.
      See Also:
      IAccessRule
    • getModifiers

      public int getModifiers()
      Description copied from class: TypeNameMatch
      Returns the modifiers of the matched type.

      This is a handle-only method as neither Java Model nor classpath initialization is done while calling this method.

      Specified by:
      getModifiers in class TypeNameMatch
      Returns:
      the type modifiers
    • getType

      public IType getType()
      Description copied from class: TypeNameMatch
      Returns a java model type handle. This handle may exist or not, but is not supposed to be null.

      This is a handle-only method as neither Java Model nor classpath initializations are done while calling this method.

      Specified by:
      getType in class TypeNameMatch
      Returns:
      the non-null handle on matched java model type.
      See Also:
      IType
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • setAccessibility

      public void setAccessibility(int accessibility)
      Sets the accessibility of the accepted match.
      Parameters:
      accessibility - the accessibility of the current match
    • setModifiers

      public void setModifiers(int modifiers)
      Set modifiers of the matched type.
      Parameters:
      modifiers - the modifiers of the matched type.
    • setType

      public void setType(IType type)
      Set matched type.
      Parameters:
      type - the matched type.
    • toString

      public String toString()
      Overrides:
      toString in class Object