public final class JavaMethod extends Method
Modifier and Type | Class and Description |
---|---|
static class |
JavaMethod.Builder |
Modifier and Type | Field and Description |
---|---|
static String |
QUALIFIER |
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 JavaMethod |
createRef(JavaClass javaClass,
String signature) |
static JavaMethod |
createRef(String key) |
String |
getClassName() |
String |
getDescription() |
int |
getFromLine() |
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 |
getSignature() |
int |
getToLine() |
boolean |
isAccessor() |
String |
toString() |
createMethod, equals, getLanguage, getQualifier, getScope, hashCode, matchFilePattern
getEffectiveKey, getId, getKey, isExcluded, setEffectiveKey, setExcluded, setId, setKey
public static final String QUALIFIER
public static final int UNKNOWN_LINE
public int getFromLine()
public int getToLine()
public String getSignature()
public String getClassName()
public boolean isAccessor()
public String getLongName()
getLongName
in class Method
public String getDescription()
getDescription
in class Method
public Resource getParent()
Resource
Return null if the parent is the project.
public static JavaMethod createRef(String key)
public static JavaMethod createRef(JavaClass javaClass, String signature)
Copyright © 2009-2012 SonarSource. All Rights Reserved.