org.eclipse.jdt.internal.compiler.env
Class AccessRuleSet

java.lang.Object
  extended by 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.


Field Summary
 java.lang.String classpathEntryName
           
 byte classpathEntryType
           
 
Constructor Summary
AccessRuleSet(AccessRule[] accessRules, byte classpathEntryType, java.lang.String classpathEntryName)
          Make a new set of access rules.
 
Method Summary
 boolean equals(java.lang.Object object)
           
 AccessRule[] getAccessRules()
           
 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.
 java.lang.String toString()
           
 java.lang.String toString(boolean wrap)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

classpathEntryType

public byte classpathEntryType

classpathEntryName

public java.lang.String classpathEntryName
Constructor Detail

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 set
classpathEntryType - one of AccessRestriction.COMMAND_LINE, AccessRestriction.LIBRARY, AccessRestriction.PROJECT that tells the access restrictions how to render the classpath entry
classpathEntryName - a user-readable name for the classpath entry
Method Detail

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)