org.aspectj.org.eclipse.jdt.internal.core.search
Class JavaSearchTypeNameMatch

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.core.search.TypeNameMatch
      extended by 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 Summary
JavaSearchTypeNameMatch(IType type, int modifiers)
          Creates a new Java Search type name match.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getModifiers()
          Returns the modifiers of the matched type.
 IType getType()
          Returns a java model type handle.
 int hashCode()
           
 void setModifiers(int modifiers)
          Set modifiers of the matched type.
 void setType(IType type)
          Set matched type.
 java.lang.String toString()
           
 
Methods inherited from class org.aspectj.org.eclipse.jdt.core.search.TypeNameMatch
getFullyQualifiedName, getPackageFragmentRoot, getPackageName, getSimpleTypeName, getTypeContainerName, getTypeQualifiedName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaSearchTypeNameMatch

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

Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

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 java.lang.Object

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 java.lang.String toString()
Overrides:
toString in class java.lang.Object