org.eclipse.jdt.internal.compiler.env
Class AccessRuleSet
java.lang.Object
org.eclipse.jdt.internal.compiler.env.AccessRuleSet
public class AccessRuleSet
- extends Object
Definition of a set of access rules used to flag forbidden references to non API code.
classpathEntryType
public byte classpathEntryType
classpathEntryName
public String classpathEntryName
AccessRuleSet
public AccessRuleSet(AccessRule[] accessRules,
byte classpathEntryType,
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(Object object)
- Overrides:
equals
in class 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
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
toString
public String toString(boolean wrap)
Copyright © 2012. All Rights Reserved.