@Beta public class Symbol extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Symbol.Kind |
| Constructor and Description |
|---|
Symbol(String name,
Symbol.Kind kind,
Scope scope) |
| Modifier and Type | Method and Description |
|---|---|
void |
addType(Type type) |
void |
addTypes(Set<Type> type) |
void |
addUsage(IdentifierTree identifierTree,
Usage.Kind usageKind) |
boolean |
external() |
boolean |
is(Symbol.Kind kind) |
boolean |
isVariable() |
Symbol.Kind |
kind() |
String |
name() |
Scope |
scope() |
Symbol |
setExternal(boolean external) |
void |
setKind(Symbol.Kind kind) |
String |
toString() |
TypeSet |
types() |
Collection<Usage> |
usages() |
public Symbol(String name, Symbol.Kind kind, Scope scope)
public void addUsage(IdentifierTree identifierTree, Usage.Kind usageKind)
public Collection<Usage> usages()
public Symbol setExternal(boolean external)
public Scope scope()
public String name()
public boolean external()
public boolean is(Symbol.Kind kind)
public Symbol.Kind kind()
public void setKind(Symbol.Kind kind)
public void addType(Type type)
public TypeSet types()
public boolean isVariable()
Copyright © 2011–2017 SonarSource and Eriks Nukis. All rights reserved.