org.eclipse.jdt.internal.compiler.env
Class AccessRuleSet
java.lang.Object
org.eclipse.jdt.internal.compiler.env.AccessRuleSet
public class AccessRuleSet
- extends java.lang.Object
Definition of a set of access rules used to flag forbidden references to non API code.
Constructor Summary |
AccessRuleSet(AccessRule[] accessRules,
byte classpathEntryType,
java.lang.String classpathEntryName)
Make a new set of access rules. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
classpathEntryType
public byte classpathEntryType
classpathEntryName
public java.lang.String classpathEntryName
AccessRuleSet
public AccessRuleSet(AccessRule[] accessRules,
byte classpathEntryType,
java.lang.String classpathEntryName)
- Make a new set of access rules.
- Parameters:
accessRules
- the access rules to be contained by the new setclasspathEntryType
- one of AccessRestriction.COMMAND_LINE
,
AccessRestriction.LIBRARY
, AccessRestriction.PROJECT
that tells the access restrictions how to render the classpath entryclasspathEntryName
- a user-readable name for the classpath entry
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)
getAccessRules
public AccessRule[] getAccessRules()
getViolatedRestriction
public AccessRestriction getViolatedRestriction(char[] targetTypeFilePath)
- 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/eclipse/jdt/core/JavaCore"
- Returns:
- the first access restriction that applies if any, null else
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toString
public java.lang.String toString(boolean wrap)