public class JavaSearchTypeNameMatch extends TypeNameMatch
| Constructor and Description |
|---|
JavaSearchTypeNameMatch(IType type,
int modifiers)
Creates a new Java Search type name match.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getAccessibility()
Returns the accessibility of the type name match
|
int |
getModifiers()
Returns the modifiers of the matched type.
|
IType |
getType()
Returns a java model type handle.
|
int |
hashCode() |
void |
setAccessibility(int accessibility)
Sets the accessibility of the accepted match.
|
void |
setModifiers(int modifiers)
Set modifiers of the matched type.
|
void |
setType(IType type)
Set matched type.
|
java.lang.String |
toString() |
getFullyQualifiedName, getPackageFragmentRoot, getPackageName, getSimpleTypeName, getTypeContainerName, getTypeQualifiedNamepublic JavaSearchTypeNameMatch(IType type, int modifiers)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int getAccessibility()
TypeNameMatchgetAccessibility in class TypeNameMatchIAccessRule.K_ACCESSIBLE, IAccessRule.K_DISCOURAGED
or IAccessRule.K_NON_ACCESSIBLE.
The default returned value is IAccessRule.K_ACCESSIBLE.IAccessRulepublic int getModifiers()
TypeNameMatchThis is a handle-only method as neither Java Model nor classpath initialization is done while calling this method.
getModifiers in class TypeNameMatchpublic IType getType()
TypeNameMatchnull.
This is a handle-only method as neither Java Model nor classpath initializations are done while calling this method.
getType in class TypeNameMatchITypepublic int hashCode()
hashCode in class java.lang.Objectpublic void setAccessibility(int accessibility)
accessibility - the accessibility of the current matchpublic void setModifiers(int modifiers)
modifiers - the modifiers of the matched type.public void setType(IType type)
type - the matched type.public java.lang.String toString()
toString in class java.lang.Object