public interface Symbol
Modifier and Type | Interface and Description |
---|---|
static interface |
Symbol.LabelSymbol
Label symbol.
|
static interface |
Symbol.MethodSymbol
Symbol for methods.
|
static interface |
Symbol.TypeSymbol
Symbol for a type : class, enum, interface or annotation.
|
static interface |
Symbol.VariableSymbol
Symbol for field, method parameters and local variables.
|
Modifier and Type | Method and Description |
---|---|
Tree |
declaration()
Declaration node of this symbol.
|
Symbol.TypeSymbol |
enclosingClass()
The closest enclosing class.
|
boolean |
isAbstract() |
boolean |
isDeprecated() |
boolean |
isEnum() |
boolean |
isFinal() |
boolean |
isInterface() |
boolean |
isMethodSymbol() |
boolean |
isPackageSymbol() |
boolean |
isPackageVisibility() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
boolean |
isTypeSymbol() |
boolean |
isUnknown() |
boolean |
isVariableSymbol() |
boolean |
isVolatile() |
SymbolMetadata |
metadata()
Symbol metadata informations, annotations for instance.
|
String |
name()
Name of this symbol.
|
Symbol |
owner()
The owner of this symbol.
|
Type |
type()
Type of symbol.
|
List<IdentifierTree> |
usages()
The identifier trees that reference this symbol.
|
String name()
Symbol owner()
Type type()
boolean isVariableSymbol()
boolean isTypeSymbol()
boolean isMethodSymbol()
boolean isPackageSymbol()
boolean isStatic()
boolean isFinal()
boolean isEnum()
boolean isInterface()
boolean isAbstract()
boolean isPublic()
boolean isPrivate()
boolean isProtected()
boolean isPackageVisibility()
boolean isDeprecated()
boolean isVolatile()
boolean isUnknown()
SymbolMetadata metadata()
@Nullable Symbol.TypeSymbol enclosingClass()
List<IdentifierTree> usages()
Copyright © 2012–2017 SonarSource. All rights reserved.