public class Symbol extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Symbol.MethodSymbol
Represents a method, constructor or initializer (static or instance).
|
static class |
Symbol.PackageSymbol
Represents package.
|
static class |
Symbol.TypeSymbol
Represents a class, interface, enum or annotation type.
|
static class |
Symbol.TypeVariableSymbol
Represents type variable of a parametrized type ie: T in class Foo
|
static class |
Symbol.VariableSymbol
Represents a field, enum constant, method or constructor parameter, local variable, resource variable or exception parameter.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ABSENT |
static int |
AMBIGUOUS |
static int |
ERRONEOUS |
static int |
MTH |
static int |
PCK |
static int |
TYP |
static int |
VAR |
| Constructor and Description |
|---|
Symbol(int kind,
int flags,
String name,
Symbol owner) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete() |
Symbol.TypeSymbol |
enclosingClass()
The closest enclosing class.
|
int |
flags() |
String |
getName() |
Type |
getType() |
boolean |
isAbstract() |
boolean |
isDeprecated() |
boolean |
isEnum() |
boolean |
isFinal() |
protected boolean |
isFlag(int flag) |
boolean |
isKind(int kind) |
boolean |
isPackageVisibility() |
boolean |
isPrivate() |
boolean |
isPublic() |
boolean |
isStatic() |
SymbolMetadata |
metadata() |
Symbol.TypeSymbol |
outermostClass()
The outermost class which indirectly owns this symbol.
|
Symbol |
owner()
The owner of this symbol.
|
Symbol.PackageSymbol |
packge()
The package which indirectly owns this symbol.
|
public static final int PCK
public static final int TYP
public static final int VAR
public static final int MTH
public static final int ERRONEOUS
public static final int AMBIGUOUS
public static final int ABSENT
public int flags()
Flagspublic Symbol owner()
public String getName()
public SymbolMetadata metadata()
public void complete()
public Symbol.TypeSymbol outermostClass()
public Symbol.PackageSymbol packge()
public Symbol.TypeSymbol enclosingClass()
public boolean isKind(int kind)
public Type getType()
public boolean isStatic()
public boolean isFinal()
public boolean isEnum()
public boolean isAbstract()
public boolean isPublic()
public boolean isPrivate()
public boolean isDeprecated()
protected boolean isFlag(int flag)
public boolean isPackageVisibility()
Copyright © 2012–2015 SonarSource. All rights reserved.