public final class Scopes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BLOCK_UNIT
Deprecated.
since 4.3 resources under FILE level are no more be supported since 4.2.
|
static java.lang.String |
DIRECTORY
For example directory or Java package.
|
static java.lang.String |
FILE
For example a Java file.
|
static java.lang.String |
PROGRAM_UNIT
Deprecated.
since 4.3 resources under FILE level are no more be supported since 4.2.
|
static java.lang.String |
PROJECT
For example view, subview, project, module or library.
|
static java.lang.String[] |
SORTED_SCOPES |
Modifier and Type | Method and Description |
---|---|
static boolean |
isBlockUnit(Resource resource)
Deprecated.
since 4.3 resources under FILE level are no more be supported since 4.2.
|
static boolean |
isDirectory(Resource resource) |
static boolean |
isFile(Resource resource)
This scope is sometimes called a "compilation unit".
|
static boolean |
isHigherThan(Resource resource,
java.lang.String than) |
static boolean |
isHigherThan(java.lang.String scope,
java.lang.String than) |
static boolean |
isHigherThanOrEquals(Resource resource,
java.lang.String than) |
static boolean |
isHigherThanOrEquals(java.lang.String scope,
java.lang.String than) |
static boolean |
isProgramUnit(Resource resource)
Deprecated.
since 4.3 resources under FILE level are no more be supported since 4.2.
|
static boolean |
isProject(Resource resource) |
public static final java.lang.String PROJECT
public static final java.lang.String DIRECTORY
public static final java.lang.String FILE
@Deprecated public static final java.lang.String PROGRAM_UNIT
@Deprecated public static final java.lang.String BLOCK_UNIT
public static final java.lang.String[] SORTED_SCOPES
public static boolean isProject(Resource resource)
public static boolean isDirectory(Resource resource)
public static boolean isFile(Resource resource)
@Deprecated public static boolean isProgramUnit(Resource resource)
@Deprecated public static boolean isBlockUnit(Resource resource)
public static boolean isHigherThan(Resource resource, java.lang.String than)
public static boolean isHigherThan(java.lang.String scope, java.lang.String than)
public static boolean isHigherThanOrEquals(Resource resource, java.lang.String than)
public static boolean isHigherThanOrEquals(java.lang.String scope, java.lang.String than)