Class JavaSearchTypeNameMatch
java.lang.Object
org.aspectj.org.eclipse.jdt.core.search.TypeNameMatch
org.aspectj.org.eclipse.jdt.internal.core.search.JavaSearchTypeNameMatch
Java Search concrete class for a type name match.
- Since:
- 3.3
-
Constructor Summary
ConstructorsConstructorDescriptionJavaSearchTypeNameMatch(IType type, int modifiers) Creates a new Java Search type name match. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the accessibility of the type name matchintReturns the modifiers of the matched type.getType()Returns a java model type handle.inthashCode()voidsetAccessibility(int accessibility) Sets the accessibility of the accepted match.voidsetModifiers(int modifiers) Set modifiers of the matched type.voidSet matched type.toString()Methods inherited from class TypeNameMatch
getFullyQualifiedName, getPackageFragmentRoot, getPackageName, getSimpleTypeName, getTypeContainerName, getTypeQualifiedName
-
Constructor Details
-
JavaSearchTypeNameMatch
Creates a new Java Search type name match.
-
-
Method Details
-
equals
-
getAccessibility
public int getAccessibility()Description copied from class:TypeNameMatchReturns the accessibility of the type name match- Specified by:
getAccessibilityin classTypeNameMatch- Returns:
- the accessibility of the type name which may be
IAccessRule.K_ACCESSIBLE,IAccessRule.K_DISCOURAGEDorIAccessRule.K_NON_ACCESSIBLE. The default returned value isIAccessRule.K_ACCESSIBLE. - See Also:
-
getModifiers
public int getModifiers()Description copied from class:TypeNameMatchReturns 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:
getModifiersin classTypeNameMatch- Returns:
- the type modifiers
-
getType
Description copied from class:TypeNameMatchReturns a java model type handle. This handle may exist or not, but is not supposed to benull.This is a handle-only method as neither Java Model nor classpath initializations are done while calling this method.
- Specified by:
getTypein classTypeNameMatch- Returns:
- the non-null handle on matched java model type.
- See Also:
-
hashCode
-
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
-
toString
-