Class AccessRuleSet
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.env.AccessRuleSet
Definition of a set of access rules used to flag forbidden references to non API code.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAccessRuleSet(AccessRule[] accessRules, byte classpathEntryType, String classpathEntryName) Make a new set of access rules. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetViolatedRestriction(char[] targetTypeFilePath) Select the first access rule which is violated when accessing a given type, or null if no 'non accessible' access rule applies.inthashCode()toString()toString(boolean wrap)
-
Field Details
-
classpathEntryType
public byte classpathEntryType -
classpathEntryName
-
-
Constructor Details
-
AccessRuleSet
Make a new set of access rules.- Parameters:
accessRules- the access rules to be contained by the new setclasspathEntryType- one ofAccessRestriction.COMMAND_LINE,AccessRestriction.LIBRARY,AccessRestriction.PROJECTthat tells the access restrictions how to render the classpath entryclasspathEntryName- a user-readable name for the classpath entry
-
-
Method Details
-
equals
-
getAccessRules
-
getViolatedRestriction
Select the first access rule which is violated when accessing a given type, or null if no 'non accessible' access rule applies.- Parameters:
targetTypeFilePath- the target type file path, formed as: "org/aspectj/org/eclipse/jdt/core/JavaCore"- Returns:
- the first access restriction that applies if any, null else
-
hashCode
-
toString
-
toString
-