Directory instead@Deprecated public class JavaPackage extends Resource
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PACKAGE_NAME
Deprecated.
Default package name for classes without package definition
|
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| Constructor and Description |
|---|
JavaPackage()
Deprecated.
since 4.2 use
#create(String, String) |
JavaPackage(String deprecatedKey)
Deprecated.
since 4.2 use
#create(String, String) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Deprecated.
|
Language |
getLanguage()
Deprecated.
|
String |
getLongName()
Deprecated.
|
String |
getName()
Deprecated.
|
Resource |
getParent()
Deprecated.
The parent is used to build the resources tree, for example for relations between classes, packages and projects.
|
String |
getQualifier()
Deprecated.
The qualifier tells the type of the resource.
|
String |
getScope()
Deprecated.
|
boolean |
isDefault()
Deprecated.
|
boolean |
matchFilePattern(String antPattern)
Deprecated.
Check resource against an Ant pattern, like mypackag?/*Foo.java.
|
String |
toString()
Deprecated.
|
equals, getDeprecatedKey, getEffectiveKey, getId, getKey, getPath, hashCode, isExcluded, normalize, setDeprecatedKey, setEffectiveKey, setExcluded, setId, setKey, setPathpublic static final String DEFAULT_PACKAGE_NAME
@Deprecated public JavaPackage()
#create(String, String)@Deprecated public JavaPackage(String deprecatedKey)
#create(String, String)public boolean isDefault()
public boolean matchFilePattern(String antPattern)
matchFilePattern in class ResourceantPattern - Ant-like pattern (with **, * and ?). It includes file suffixes.public String getDescription()
getDescription 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()
Return null if the parent is the project.
public String getLongName()
getLongName in class Resourcepublic Language getLanguage()
getLanguage in class ResourceCopyright © 2009-2014 SonarSource. All Rights Reserved.