public class Method extends Resource
Modifier and Type | Field and Description |
---|---|
protected Language |
language |
protected String |
qualifier |
static String |
SCOPE |
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 | Constructor and Description |
---|---|
protected |
Method(String key,
String qualifier,
Language language) |
Modifier and Type | Method and Description |
---|---|
static Method |
createMethod(String key,
Language language) |
boolean |
equals(Object o) |
String |
getDescription() |
Language |
getLanguage() |
String |
getLongName() |
String |
getName() |
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 |
hashCode() |
boolean |
matchFilePattern(String antPattern)
Check resource against an Ant pattern, like mypackag?/*Foo.java.
|
getEffectiveKey, getId, getKey, isExcluded, setEffectiveKey, setExcluded, setId, setKey
public static final String SCOPE
public String getLongName()
getLongName
in class Resource
public String getDescription()
getDescription
in class Resource
public final Language getLanguage()
getLanguage
in class Resource
public final String getQualifier()
Resource
getQualifier
in class Resource
for the list of qualifiers
,
to find out if a resource if a class, a unit test,... from its qualifier
public Resource getParent()
Resource
Return null if the parent is the project.
public final boolean matchFilePattern(String antPattern)
Resource
matchFilePattern
in class Resource
antPattern
- Ant-like pattern (with **, * and ?). It includes file suffixes.public static Method createMethod(String key, Language language)
Copyright © 2009-2013 SonarSource. All Rights Reserved.