Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.library.classpath
Class ClasspathAccessRule

java.lang.Object
  extended by org.eclipse.mtj.core.library.classpath.ClasspathAccessRule

public class ClasspathAccessRule
extends Object

Describes an access rule to class files on a classpath entry. An access rule is composed of a file pattern and a kind (accessible, non accessible, or discouraged).

Since:
0.9.1

Constructor Summary
ClasspathAccessRule(IPath pattern, String kind)
          Creates a new ClasspathAccessRule
 
Method Summary
 int getKind()
           
 IPath getPattern()
           
 boolean ignoreIfBetter()
          Should return whether a type matching this rule should be ignored if a type with the same qualified name can be found on a later classpath entry with a better accessibility.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathAccessRule

public ClasspathAccessRule(IPath pattern,
                           String kind)
Creates a new ClasspathAccessRule

Parameters:
pattern - An access rule file pattern.
kind - An access rule kind (accessible, non accessible, or discouraged).
ACCESSIBLE: indicates that files matching the rule's pattern are accessible.
NON_ACCESSIBLE: indicates that files matching the rule's pattern are non accessible.
DISCOURAGED: indicates that access to the files matching the rule's pattern is discouraged.
Method Detail

getKind

public int getKind()

getPattern

public IPath getPattern()

ignoreIfBetter

public boolean ignoreIfBetter()
Should return whether a type matching this rule should be ignored if a type with the same qualified name can be found on a later classpath entry with a better accessibility.

Returns:
false
See Also:
org.eclipse.jdt.core.IAccessRule#ignoreIfBetter()

Mobile Tools for Java
Release 1.0