| Modifier and Type | Class and Description |
|---|---|
static class |
JavaClass.Builder |
| Modifier and Type | Field and Description |
|---|---|
static String |
QUALIFIER |
static String |
SCOPE |
static int |
UNKNOWN_LINE |
QUALIFIER_CLASS, QUALIFIER_DIRECTORY, QUALIFIER_FIELD, QUALIFIER_FILE, QUALIFIER_LIB, QUALIFIER_METHOD, QUALIFIER_MODULE, QUALIFIER_PACKAGE, QUALIFIER_PROJECT, QUALIFIER_SUBVIEW, QUALIFIER_UNIT_TEST_CLASS, QUALIFIER_VIEW, SCOPE_ENTITY, SCOPE_SET, SCOPE_SPACE| Modifier and Type | Method and Description |
|---|---|
static JavaClass |
create(String name) |
static JavaClass |
create(String packageName,
String className) |
String |
getClassName() |
String |
getDescription() |
int |
getFromLine() |
Language |
getLanguage() |
String |
getLongName() |
String |
getName() |
String |
getPackageName() |
Resource |
getParent()
The parent is used to build the resources tree, for example for relations between classes, packages and projects.
|
String |
getQualifier()
The qualifier tells the type of the resource.
|
String |
getScope() |
int |
getToLine() |
boolean |
matchFilePattern(String antPattern)
Check resource against an Ant pattern, like mypackag?/*Foo.java.
|
String |
toString() |
equals, getEffectiveKey, getId, getKey, hashCode, isExcluded, setEffectiveKey, setExcluded, setId, setKeypublic static final String SCOPE
public static final String QUALIFIER
public static final int UNKNOWN_LINE
public String getPackageName()
public String getClassName()
public int getFromLine()
public int getToLine()
public String getLongName()
getLongName in class Resourcepublic String getDescription()
getDescription in class Resourcepublic Language getLanguage()
getLanguage in class Resourcepublic String getQualifier()
ResourcegetQualifier in class Resourcefor the list of qualifiers,
to find out if a resource if a class, a unit test,... from its qualifierpublic Resource getParent()
ResourceReturn null if the parent is the project.
public boolean matchFilePattern(String antPattern)
ResourcematchFilePattern in class ResourceantPattern - Ant-like pattern (with **, * and ?). It includes file suffixes.Copyright © 2009-2012 SonarSource. All Rights Reserved.