public final class Scopes extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BLOCK_UNIT
Deprecated.
since 4.3 resources under FILE level are no more be supported since 4.2.
|
static String |
DIRECTORY
For example directory or Java package.
|
static String |
FILE
For example a Java file.
|
static String |
PROGRAM_UNIT
Deprecated.
since 4.3 resources under FILE level are no more be supported since 4.2.
|
static String |
PROJECT
For example view, subview, project, module or library.
|
static 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,
String than) |
static boolean |
isHigherThan(String scope,
String than) |
static boolean |
isHigherThanOrEquals(Resource resource,
String than) |
static boolean |
isHigherThanOrEquals(String scope,
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 String PROJECT
public static final String DIRECTORY
public static final String FILE
@Deprecated public static final String PROGRAM_UNIT
@Deprecated public static final String BLOCK_UNIT
public static final String[] SORTED_SCOPES
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, String than)
public static boolean isHigherThan(String scope, String than)
public static boolean isHigherThanOrEquals(Resource resource, String than)
public static boolean isHigherThanOrEquals(String scope, String than)
Copyright © 2009–2016 SonarSource. All rights reserved.