org.eclipse.jdt.internal.compiler.env
类 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.
- 参数:
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)
- 覆盖:
- 类
Object 中的 equals
- 另请参见:
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.
- 参数:
targetTypeFilePath - the target type file path, formed as:
"org/eclipse/jdt/core/JavaCore"
- 返回:
- the first access restriction that applies if any, null else
hashCode
public int hashCode()
- 覆盖:
- 类
Object 中的 hashCode
toString
public String toString()
- 覆盖:
- 类
Object 中的 toString
toString
public String toString(boolean wrap)
Copyright © 2013. All Rights Reserved.