Class ClasspathAccessRule
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.env.AccessRule
org.aspectj.org.eclipse.jdt.internal.core.ClasspathAccessRule
- All Implemented Interfaces:
IAccessRule
-
Field Summary
Fields inherited from class AccessRule
IgnoreIfBetter, pattern, problemIdModifier and TypeFieldDescriptionstatic final intfinal char[]final intFields inherited from interface IAccessRule
IGNORE_IF_BETTER, K_ACCESSIBLE, K_DISCOURAGED, K_NON_ACCESSIBLEModifier and TypeFieldDescriptionstatic final intFlag indicating that whether a type matching this rule should be ignored iff a type with the same qualified name can be found on a later classpath entry with a better accessibility.static final intConstant indicating that files matching the rule's pattern are accessible.static final intConstant indicating that access to the files matching the rule's pattern is discouraged.static final intConstant indicating that files matching the rule's pattern are non-accessible. -
Constructor Summary
ConstructorsConstructorDescriptionClasspathAccessRule(char[] pattern, int problemId) ClasspathAccessRule(org.eclipse.core.runtime.IPath pattern, int kind) -
Method Summary
Modifier and TypeMethodDescriptionintgetKind()Returns the kind of this access rule (one ofIAccessRule.K_ACCESSIBLE,IAccessRule.K_NON_ACCESSIBLEorIAccessRule.K_DISCOURAGED).org.eclipse.core.runtime.IPathReturns the file pattern for this access rule.Methods inherited from class AccessRule
equals, getProblemId, hashCode, ignoreIfBetter, toStringMethods inherited from interface IAccessRule
ignoreIfBetterModifier and TypeMethodDescriptionbooleanReturns whether a type matching this rule should be ignored iff a type with the same qualified name can be found on a later classpath entry with a better accessibility.
-
Constructor Details
-
ClasspathAccessRule
public ClasspathAccessRule(org.eclipse.core.runtime.IPath pattern, int kind) -
ClasspathAccessRule
public ClasspathAccessRule(char[] pattern, int problemId)
-
-
Method Details
-
getPattern
public org.eclipse.core.runtime.IPath getPattern()Description copied from interface:IAccessRuleReturns the file pattern for this access rule.- Specified by:
getPatternin interfaceIAccessRule- Returns:
- the file pattern for this access rule
- See Also:
-
getKind
public int getKind()Description copied from interface:IAccessRuleReturns the kind of this access rule (one ofIAccessRule.K_ACCESSIBLE,IAccessRule.K_NON_ACCESSIBLEorIAccessRule.K_DISCOURAGED).- Specified by:
getKindin interfaceIAccessRule- Returns:
- the kind of this access rule
-