Modifier and Type | Method and Description |
---|---|
Symbol |
JavacTrees.getElement(TreePath path) |
Modifier and Type | Class and Description |
---|---|
static class |
Symbol.DelegatedSymbol<T extends Symbol> |
Modifier and Type | Class and Description |
---|---|
static class |
Symbol.ClassSymbol
A class for class symbols
|
static class |
Symbol.DelegatedSymbol<T extends Symbol> |
static class |
Symbol.DynamicMethodSymbol
A class for invokedynamic method calls.
|
static class |
Symbol.MethodSymbol
A class for method symbols.
|
static class |
Symbol.OperatorSymbol
A class for predefined operators.
|
static class |
Symbol.PackageSymbol
A class for package symbols
|
static class |
Symbol.TypeSymbol
A base class for Symbols representing types.
|
static class |
Symbol.TypeVariableSymbol
Type variables are represented by instances of this class.
|
static class |
Symbol.VarSymbol
A class for variable symbols
|
Modifier and Type | Field and Description |
---|---|
Symbol |
Symbol.DynamicMethodSymbol.bsm |
protected T |
Symbol.DelegatedSymbol.other |
Symbol |
Scope.owner
The scope's owner.
|
Symbol |
Symbol.owner
The owner of this symbol.
|
Symbol |
Scope.Entry.sym
The referenced symbol.
|
Symbol |
Symbol.CompletionFailure.sym |
Modifier and Type | Field and Description |
---|---|
static Filter<Symbol> |
Symbol.MethodSymbol.implementation_filter |
Modifier and Type | Method and Description |
---|---|
Symbol |
Symbol.asMemberOf(Type site,
Types types)
The (variable or method) symbol seen as a member of given
class type`site' (this might change the symbol's type).
|
Symbol |
Symbol.DelegatedSymbol.asMemberOf(Type site,
Types types) |
Symbol |
Symbol.MethodSymbol.asMemberOf(Type site,
Types types) |
Symbol |
Symbol.VarSymbol.asMemberOf(Type site,
Types types) |
Symbol |
Symbol.baseSymbol() |
Symbol |
Symbol.DelegatedSymbol.baseSymbol() |
Symbol |
Symbol.clone(Symbol newOwner)
Clone this symbol with new owner.
|
Symbol |
Types.findDescriptorSymbol(Symbol.TypeSymbol origin)
Find the method descriptor associated to this class symbol - if the
symbol 'origin' is not a functional interface, an exception is thrown.
|
Symbol |
Symbol.getEnclosingElement() |
Symbol |
Symbol.PackageSymbol.getEnclosingElement() |
Symbol |
Symbol.TypeVariableSymbol.getGenericElement() |
Symbol |
Symbol.MethodSymbol.implemented(Symbol.TypeSymbol c,
Types types)
find a symbol that this (proxy method) symbol implements.
|
Symbol |
Symbol.MethodSymbol.implementedIn(Symbol.TypeSymbol c,
Types types) |
Symbol |
Symbol.DelegatedSymbol.location() |
Symbol |
Symbol.DelegatedSymbol.location(Type site,
Types types) |
Symbol |
Symbol.location()
A Java source description of the location of this symbol; used for
error reporting.
|
Symbol |
Symbol.location(Type site,
Types types) |
Modifier and Type | Method and Description |
---|---|
List<Symbol> |
Types.functionalInterfaceBridges(Symbol.TypeSymbol origin)
Find the minimal set of methods that are overridden by the functional
descriptor in 'origin'.
|
Iterable<Symbol> |
Scope.CompoundScope.getElements(Filter<Symbol> sf) |
Iterable<Symbol> |
Scope.getElements() |
Iterable<Symbol> |
Scope.getElements(Filter<Symbol> sf) |
Iterable<Symbol> |
Scope.CompoundScope.getElementsByName(Name name,
Filter<Symbol> sf) |
Iterable<Symbol> |
Scope.getElementsByName(Name name) |
Iterable<Symbol> |
Scope.getElementsByName(Name name,
Filter<Symbol> sf) |
List<Symbol> |
Symbol.getEnclosedElements() |
List<Symbol> |
Symbol.TypeSymbol.getEnclosedElements() |
Modifier and Type | Method and Description |
---|---|
TypeAnnotations.AnnotationType |
TypeAnnotations.annotationType(Attribute.Compound a,
Symbol s)
Determine whether an annotation is a declaration annotation,
a type annotation, or both.
|
Type |
Types.asEnclosingSuper(Type t,
Symbol sym)
Return the base type of t or any of its enclosing types that
starts with the given symbol.
|
Type |
Types.asOuterSuper(Type t,
Symbol sym)
Return the base type of t or any of its outer types that starts
with the given symbol.
|
Type |
Type.ErrorType.asSub(Symbol sym) |
Type |
Types.asSub(Type t,
Symbol sym)
Return the least specific subtype of t that starts with symbol
sym.
|
Type |
Types.asSuper(Type t,
Symbol sym)
Return the (most specific) base type of t that starts with the
given symbol.
|
Attribute.Compound |
Symbol.attribute(Symbol anno)
Fetch a particular annotation from a symbol.
|
Lint |
Lint.augment(Symbol sym)
Returns the result of combining the values in this object with
the metadata on the given symbol.
|
boolean |
Symbol.MethodSymbol.binaryOverrides(Symbol _other,
Symbol.TypeSymbol origin,
Types types)
Will the erasure of this method be considered by the VM to
override the erasure of the other when seen from class `origin'?
|
Symbol |
Symbol.clone(Symbol newOwner)
Clone this symbol with new owner.
|
Symbol.MethodSymbol |
Symbol.MethodSymbol.clone(Symbol newOwner)
Clone this symbol with new owner.
|
Symbol.VarSymbol |
Symbol.VarSymbol.clone(Symbol newOwner)
Clone this symbol with new owner.
|
void |
Symbol.Completer.complete(Symbol sym) |
Scope |
Scope.CompoundScope.dup(Symbol newOwner) |
Scope |
Scope.dup(Symbol newOwner)
Construct a fresh scope within this scope, with new owner,
which shares its table with the outer scope.
|
void |
Scope.CompoundScope.enter(Symbol sym,
Scope s,
Scope origin,
boolean staticallyImported) |
void |
Scope.DelegatedScope.enter(Symbol sym) |
void |
Scope.DelegatedScope.enter(Symbol sym,
Scope s) |
void |
Scope.enter(Symbol sym)
Enter symbol sym in this scope.
|
void |
Scope.enter(Symbol sym,
Scope s) |
void |
Scope.enter(Symbol sym,
Scope s,
Scope origin,
boolean staticallyImported)
Enter symbol sym in this scope, but mark that it comes from
given scope `s' accessed through `origin'.
|
void |
Scope.enterIfAbsent(Symbol sym)
Enter symbol sym in this scope if not already there.
|
static Name |
Symbol.TypeSymbol.formFlatName(Name name,
Symbol owner)
form a fully qualified name from a name and an owner, after
converting to flat representation
|
static Name |
Symbol.TypeSymbol.formFullName(Name name,
Symbol owner)
form a fully qualified name from a name and an owner
|
Attribute.RetentionPolicy |
Types.getRetention(Symbol sym) |
boolean |
Scope.includes(Symbol c)
Given a class, is there already a class with same fully
qualified name in this (import) scope?
|
static boolean |
Flags.isEnum(Symbol symbol) |
boolean |
Symbol.DelegatedSymbol.isInheritedIn(Symbol clazz,
Types types) |
boolean |
Symbol.isInheritedIn(Symbol clazz,
Types types)
Is this symbol inherited into a given class?
PRE: If symbol's owner is a interface,
it is already assumed that the interface is a superinterface
of given class.
|
boolean |
Symbol.MethodSymbol.isInheritedIn(Symbol clazz,
Types types) |
static boolean |
Flags.isStatic(Symbol symbol) |
boolean |
Symbol.ClassSymbol.isSubClass(Symbol base,
Types types) |
boolean |
Symbol.DelegatedSymbol.isSubClass(Symbol base,
Types types) |
boolean |
Symbol.isSubClass(Symbol base,
Types types)
Is this symbol a subclass of `base'? Only defined for ClassSymbols.
|
static Kinds.KindName |
Kinds.kindName(Symbol sym)
A KindName representing a given symbol
|
Type |
Types.memberType(Type t,
Symbol sym)
The type of given symbol, seen as a member of t.
|
boolean |
Symbol.MethodSymbol.overrides(Symbol _other,
Symbol.TypeSymbol origin,
Types types,
boolean checkResult)
Does this symbol override `other' symbol, when both are seen as
members of class `origin'? It is assumed that _other is a member
of origin.
|
boolean |
Symbol.overrides(Symbol _other,
Symbol.TypeSymbol origin,
Types types,
boolean checkResult)
Does this method symbol override `other' symbol, when both are seen as
members of class `origin'? It is assumed that _other is a member
of origin.
|
boolean |
Types.overridesObjectMethod(Symbol.TypeSymbol origin,
Symbol msym) |
void |
Scope.CompoundScope.remove(Symbol sym) |
void |
Scope.DelegatedScope.remove(Symbol sym) |
void |
Scope.remove(Symbol sym)
Remove symbol from this scope.
|
void |
Symbol.setAttributes(Symbol other) |
void |
Scope.CompoundScope.symbolAdded(Symbol sym,
Scope s) |
void |
Scope.ScopeListener.symbolAdded(Symbol sym,
Scope s) |
void |
Scope.StarImportScope.symbolAdded(Symbol sym,
Scope s) |
void |
Scope.CompoundScope.symbolRemoved(Symbol sym,
Scope s) |
void |
Scope.ScopeListener.symbolRemoved(Symbol sym,
Scope s) |
void |
Scope.StarImportScope.symbolRemoved(Symbol sym,
Scope s) |
String |
Types.toString(Symbol t,
Locale locale)
Helper method for generating a string representation of a given type
accordingly to a given locale
|
String |
Printer.visit(Symbol s,
Locale locale)
Get a localized string representation for a given symbol.
|
R |
Types.DefaultSymbolVisitor.visit(Symbol s,
S arg) |
String |
Printer.visitSymbol(Symbol s,
Locale locale) |
R |
Symbol.Visitor.visitSymbol(Symbol s,
P arg) |
Modifier and Type | Method and Description |
---|---|
boolean |
Scope.anyMatch(Filter<Symbol> sf) |
Iterable<Symbol> |
Scope.CompoundScope.getElements(Filter<Symbol> sf) |
Iterable<Symbol> |
Scope.getElements(Filter<Symbol> sf) |
Iterable<Symbol> |
Scope.CompoundScope.getElementsByName(Name name,
Filter<Symbol> sf) |
Iterable<Symbol> |
Scope.getElementsByName(Name name,
Filter<Symbol> sf) |
Symbol.MethodSymbol |
Symbol.MethodSymbol.implementation(Symbol.TypeSymbol origin,
Types types,
boolean checkResult,
Filter<Symbol> implFilter) |
Symbol.MethodSymbol |
Types.implementation(Symbol.MethodSymbol ms,
Symbol.TypeSymbol origin,
boolean checkResult,
Filter<Symbol> implFilter) |
Scope.Entry |
Scope.CompoundScope.lookup(Name name,
Filter<Symbol> sf) |
Scope.Entry |
Scope.lookup(Name name,
Filter<Symbol> sf) |
Scope.Entry |
Scope.Entry.next(Filter<Symbol> sf) |
String |
Printer.visitSymbols(List<Symbol> ts,
Locale locale)
* Get a localized string representation for all the symbols in the input list.
|
Constructor and Description |
---|
CapturedType(Name name,
Symbol owner,
Type upper,
Type lower,
Type.WildcardType wildcard) |
ClassSymbol(long flags,
Name name,
Symbol owner) |
ClassSymbol(long flags,
Name name,
Type type,
Symbol owner) |
CompletionFailure(Symbol sym,
JCDiagnostic diag) |
CompletionFailure(Symbol sym,
String errmsg) |
CompoundScope(Symbol owner) |
DynamicMethodSymbol(Name name,
Symbol owner,
int bsmKind,
Symbol.MethodSymbol bsm,
Type type,
Object[] staticArgs) |
Entry(Symbol sym,
Scope.Entry shadowed,
Scope.Entry sibling,
Scope scope) |
ErrorScope(Symbol errSymbol) |
ImportScope(Symbol owner) |
MethodSymbol(long flags,
Name name,
Type type,
Symbol owner)
Construct a method symbol, given its flags, name, type and owner.
|
OperatorSymbol(Name name,
Type type,
int opcode,
Symbol owner) |
PackageSymbol(Name name,
Symbol owner) |
PackageSymbol(Name name,
Type type,
Symbol owner) |
Scope(Symbol owner)
Construct a new scope, within scope next, with given owner,
using a fresh table of length INITIAL_SIZE.
|
StarImportScope(Symbol owner) |
Symbol(int kind,
long flags,
Name name,
Type type,
Symbol owner)
Construct a symbol with given kind, flags, name, type and owner.
|
SymbolMetadata(Symbol sym) |
TypeSymbol(int kind,
long flags,
Name name,
Type type,
Symbol owner) |
TypeVar(Name name,
Symbol owner,
Type lower) |
TypeVariableSymbol(long flags,
Name name,
Type type,
Symbol owner) |
VarSymbol(long flags,
Name name,
Type type,
Symbol owner)
Construct a variable symbol, given its flags, name, type and owner.
|
Modifier and Type | Field and Description |
---|---|
static Filter<Symbol> |
Attr.anyNonAbstractOrDefaultMethod |
Modifier and Type | Method and Description |
---|---|
Symbol |
Attr.attribIdent(JCTree tree,
JCTree.JCCompilationUnit topLevel)
Attribute a parsed identifier.
|
Modifier and Type | Method and Description |
---|---|
Iterable<Symbol> |
AttrContext.getLocalElements() |
Modifier and Type | Method and Description |
---|---|
Type |
Attr.checkMethod(Type site,
Symbol sym,
com.sun.tools.javac.comp.Attr.ResultInfo resultInfo,
Env<AttrContext> env,
List<JCTree.JCExpression> argtrees,
List<Type> argtypes,
List<Type> typeargtypes)
Check that method arguments conform to its instantiation.
|
void |
MemberEnter.complete(Symbol sym)
Complete entering a class.
|
Type |
Infer.instantiateMethod(Env<AttrContext> env,
List<Type> tvars,
Type.MethodType mt,
com.sun.tools.javac.comp.Attr.ResultInfo resultInfo,
Symbol msym,
List<Type> argtypes,
boolean allowBoxing,
boolean useVarargs,
com.sun.tools.javac.comp.Resolve.MethodResolutionContext resolveContext,
Warner warn)
Main inference entry point - instantiate a generic method type
using given argument types and (possibly) an expected target-type.
|
boolean |
Resolve.isAccessible(Env<AttrContext> env,
Type site,
Symbol sym)
Is symbol accessible as a member of given type in given environment?
|
boolean |
Resolve.isAccessible(Env<AttrContext> env,
Type site,
Symbol sym,
boolean checkInner) |
T |
Annotate.AnnotateRepeatedContext.processRepeatedAnnotations(List<T> repeatingAnnotations,
Symbol sym)
Process a list of repeating annotations returning a new
Attribute.Compound that is the attribute for the synthesized tree
for the container.
|
void |
Resolve.reportDependence(Symbol from,
Symbol to)
Report dependencies.
|
void |
MemberEnter.typeAnnotate(JCTree tree,
Env<AttrContext> env,
Symbol sym,
JCDiagnostic.DiagnosticPosition deferPos) |
void |
Check.validateAnnotations(List<JCTree.JCAnnotation> annotations,
Symbol s)
Check the annotations of a symbol.
|
Constructor and Description |
---|
RecoveryDeferredTypeMap(DeferredAttr.AttrMode mode,
Symbol msym,
com.sun.tools.javac.comp.Resolve.MethodResolutionPhase phase) |
Modifier and Type | Field and Description |
---|---|
protected Symbol |
ClassReader.currentOwner
The class or method currently being read.
|
Modifier and Type | Method and Description |
---|---|
Symbol.ClassSymbol |
ClassReader.defineClass(Name name,
Symbol owner)
Define a new class given its name and owner.
|
protected void |
ClassReader.enterTypevars(Symbol sym) |
boolean |
Gen.isInvokeDynamic(Symbol sym) |
protected abstract void |
ClassReader.AttributeReader.read(Symbol sym,
int attrLen) |
protected void |
ClassReader.readEnclosingMethodAttr(Symbol sym) |
Constructor and Description |
---|
MethodHandle(int refKind,
Symbol refSym,
Types types) |
Modifier and Type | Method and Description |
---|---|
Symbol |
JavaCompiler.resolveBinaryNameOrIdent(String name)
Resolve an identifier which may be the binary name of a class or
the Java name of a class or package.
|
Symbol |
JavaCompiler.resolveIdent(String name)
Resolve an identifier.
|
Modifier and Type | Method and Description |
---|---|
Symbol |
FilteredMemberList.get(int index) |
Modifier and Type | Method and Description |
---|---|
Iterator<Symbol> |
FilteredMemberList.iterator() |
Modifier and Type | Field and Description |
---|---|
Symbol |
JCTree.JCNewClass.constructor |
Symbol |
JCTree.JCAssignOp.operator |
Symbol |
JCTree.JCBinary.operator |
Symbol |
JCTree.JCUnary.operator |
Symbol |
JCTree.JCFieldAccess.sym
symbol of the selected class
|
Symbol |
JCTree.JCIdent.sym
the symbol
|
Symbol |
JCTree.JCMemberReference.sym |
Modifier and Type | Method and Description |
---|---|
Symbol |
JCTree.JCAssignOp.getOperator() |
Symbol |
JCTree.JCBinary.getOperator() |
Symbol |
JCTree.JCUnary.getOperator() |
static Symbol |
TreeInfo.symbol(JCTree tree)
If this tree is an identifier or a field, return its symbol,
otherwise return null.
|
static Symbol |
TreeInfo.symbolFor(JCTree node) |
Modifier and Type | Method and Description |
---|---|
JCTree.JCStatement |
TreeMaker.Assignment(Symbol v,
JCTree.JCExpression rhs)
Construct an assignment from a variable symbol and a right hand side.
|
JCTree.JCExpression |
TreeMaker.Create(Symbol ctor,
List<JCTree.JCExpression> args)
Create a method invocation from a method tree and a list of argument trees.
|
static JCTree |
TreeInfo.declarationFor(Symbol sym,
JCTree tree)
Find the declaration for a symbol, where
that symbol is defined somewhere in the given tree.
|
static JCDiagnostic.DiagnosticPosition |
TreeInfo.diagnosticPositionFor(Symbol sym,
JCTree tree)
Find the position for reporting an error about a symbol, where
that symbol is defined somewhere in the given tree.
|
JCTree.JCIdent |
TreeMaker.Ident(Symbol sym)
Create an identifier from a symbol.
|
JCTree.JCArrayAccess |
TreeMaker.Indexed(Symbol v,
JCTree.JCExpression index)
Construct an index expression from a variable and an expression.
|
JCTree.JCVariableDecl |
TreeMaker.Param(Name name,
Type argtype,
Symbol owner)
Create a value parameter tree from its name, type, and owner.
|
List<JCTree.JCVariableDecl> |
TreeMaker.Params(List<Type> argtypes,
Symbol owner)
Create a a list of value parameter trees x0, ..., xn from a list of
their types and an their owner.
|
static int |
TreeInfo.positionFor(Symbol sym,
JCTree tree)
Find the position for reporting an error about a symbol, where
that symbol is defined somewhere in the given tree.
|
JCTree.JCExpression |
TreeMaker.QualIdent(Symbol sym)
Create a qualified identifier from a symbol, adding enough qualifications
to make the reference unique.
|
JCTree.JCExpression |
TreeMaker.Select(JCTree.JCExpression base,
Symbol sym)
Create a selection node from a qualifier tree and a symbol.
|
static void |
TreeInfo.setSymbol(JCTree tree,
Symbol sym)
If this tree is an identifier or a field, set its symbol, otherwise skip.
|
Constructor and Description |
---|
JCAssignOp(JCTree.Tag opcode,
JCTree lhs,
JCTree rhs,
Symbol operator) |
JCBinary(JCTree.Tag opcode,
JCTree.JCExpression lhs,
JCTree.JCExpression rhs,
Symbol operator) |
JCFieldAccess(JCTree.JCExpression selected,
Name name,
Symbol sym) |
JCIdent(Name name,
Symbol sym) |
Modifier and Type | Method and Description |
---|---|
protected void |
RichDiagnosticFormatter.ClassNameSimplifier.addUsage(Symbol sym)
Add a name usage to the simplifier's internal cache
|
protected void |
RichDiagnosticFormatter.preprocessSymbol(Symbol s)
Preprocess a given symbol looking for (i) additional info (where clauses) to be
added to the main diagnostic (ii) names to be compacted
|
String |
RichDiagnosticFormatter.ClassNameSimplifier.simplify(Symbol s) |
Modifier and Type | Method and Description |
---|---|
void |
ResolveWithDeps.reportDependence(Symbol from,
Symbol to)
Collect dependencies in the enclosing class
|
Copyright © 2017 earcam. All rights reserved.