Modifier and Type | Field and Description |
---|---|
List<Type> |
Type.ClassType.all_interfaces_field
All the interfaces of this class, including missing ones.
|
List<Type> |
Type.ClassType.allparams_field
A cache variable for the type parameters of this type,
appended to all parameters of its enclosing class.
|
List<Type> |
Type.MethodType.argtypes |
List<Symbol.VarSymbol> |
Symbol.MethodSymbol.capturedLocals
The captured local variables in an anonymous class
|
List<Symbol.VarSymbol> |
Symbol.MethodSymbol.extraParams
The extra (synthetic/mandated) parameters of the method.
|
List<Type> |
Type.ClassType.interfaces_field
The interfaces of this class (to be set once class is loaded).
|
List<TypeAnnotationPosition.TypePathEntry> |
TypeAnnotationPosition.location |
List<Symbol.VarSymbol> |
Symbol.MethodSymbol.params
The parameters of the method.
|
List<Name> |
Symbol.MethodSymbol.savedParameterNames
The names of the parameters
|
List<Type> |
Type.MethodType.thrown |
List<Symbol.ClassSymbol> |
Symbol.ClassSymbol.trans_local
the list of translated local classes (used for generating
InnerClasses attribute)
|
List<Type> |
Type.ForAll.tvars |
List<Type> |
Type.ClassType.typarams_field
The type parameters of this type (to be set once class is loaded).
|
List<Pair<Symbol.MethodSymbol,Attribute>> |
Attribute.Compound.values
The attributes values, as pairs.
|
Modifier and Type | Field and Description |
---|---|
protected Map<Type.UndetVar.InferenceBound,List<Type>> |
Type.UndetVar.bounds
inference variable bounds
|
Modifier and Type | Method and Description |
---|---|
List<Type> |
Type.allparams()
Return all parameters of this type and all its outer types in order
outer (first) to inner (last).
|
List<Type> |
Type.AnnotatedType.allparams() |
List<Type> |
Type.ArrayType.allparams() |
List<Type> |
Type.ClassType.allparams() |
List<Type> |
Type.DelegatedType.allparams() |
List<Type> |
Type.ErrorType.allparams() |
static List<Type> |
Type.baseTypes(List<Type> ts)
Return the base types of a list of types.
|
List<Type> |
Types.capture(List<Type> ts)
Capture conversion as specified by the JLS.
|
List<Type> |
Types.closure(Type t)
Returns the closure of a class or interface type.
|
List<Type> |
Types.directSupertypes(Type t) |
List<Type> |
Types.erasure(List<Type> ts) |
List<Type> |
Types.erasureRecursive(List<Type> ts) |
static List<Type> |
Type.filter(List<Type> ts,
Filter<Type> tf) |
List<Type> |
Types.freshTypeVariables(List<Type> types) |
List<Symbol> |
Types.functionalInterfaceBridges(Symbol.TypeSymbol origin)
Find the minimal set of methods that are overridden by the functional
descriptor in 'origin'.
|
abstract List<? extends Attribute.Compound> |
AnnoConstruct.getAnnotationMirrors() |
List<Attribute.Compound> |
Symbol.getAnnotationMirrors()
This is the implementation for
javax.lang.model.element.Element.getAnnotationMirrors() . |
List<Attribute.Compound> |
Symbol.TypeVariableSymbol.getAnnotationMirrors() |
List<Attribute.TypeCompound> |
Type.AnnotatedType.getAnnotationMirrors() |
List<Attribute.TypeCompound> |
Type.getAnnotationMirrors() |
static List<Integer> |
TypeAnnotationPosition.getBinaryFromTypePath(List<TypeAnnotationPosition.TypePathEntry> locs) |
List<Type> |
Symbol.TypeVariableSymbol.getBounds() |
List<Type> |
Type.UndetVar.getBounds(Type.UndetVar.InferenceBound... ibs)
get all bounds of a given kind
|
List<Type> |
Types.getBounds(Type.TypeVar t)
Return list of bounds of the given type variable.
|
List<Attribute.TypeCompound> |
Symbol.getClassInitTypeAttributes() |
List<Attribute.TypeCompound> |
SymbolMetadata.getClassInitTypeAttributes() |
List<Type> |
Type.IntersectionClassType.getComponents() |
List<Attribute.Compound> |
Symbol.getDeclarationAttributes() |
List<Attribute.Compound> |
SymbolMetadata.getDeclarationAttributes() |
List<Type> |
Type.UndetVar.getDeclaredBounds()
get the list of declared (upper) bounds
|
List<Type> |
Type.IntersectionClassType.getExplicitComponents() |
List<Attribute.TypeCompound> |
Symbol.getInitTypeAttributes() |
List<Attribute.TypeCompound> |
SymbolMetadata.getInitTypeAttributes() |
List<Type> |
Symbol.ClassSymbol.getInterfaces() |
static List<Type> |
Type.getModelTypes(List<Type> ts) |
List<Symbol.VarSymbol> |
Symbol.MethodSymbol.getParameters() |
List<Type> |
Type.AnnotatedType.getParameterTypes() |
List<Type> |
Type.DelegatedType.getParameterTypes() |
List<Type> |
Type.getParameterTypes() |
List<Type> |
Type.MethodType.getParameterTypes() |
List<Attribute.Compound> |
Symbol.ClassSymbol.getRawAttributes() |
List<Attribute.Compound> |
Symbol.getRawAttributes()
An accessor method for the attributes of this symbol.
|
List<Attribute.Compound> |
Symbol.PackageSymbol.getRawAttributes() |
List<Attribute.TypeCompound> |
Symbol.ClassSymbol.getRawTypeAttributes() |
List<Attribute.TypeCompound> |
Symbol.getRawTypeAttributes()
An accessor method for the type attributes of this symbol.
|
List<Type> |
Symbol.MethodSymbol.getThrownTypes() |
List<Type> |
Type.AnnotatedType.getThrownTypes() |
List<Type> |
Type.DelegatedType.getThrownTypes() |
List<Type> |
Type.getThrownTypes() |
List<Type> |
Type.MethodType.getThrownTypes() |
List<Type> |
Type.AnnotatedType.getTypeArguments() |
List<Type> |
Type.ClassType.getTypeArguments() |
List<Type> |
Type.DelegatedType.getTypeArguments() |
List<Type> |
Type.ErrorType.getTypeArguments() |
List<Type> |
Type.ForAll.getTypeArguments() |
List<Type> |
Type.getTypeArguments()
Access methods.
|
List<Attribute.TypeCompound> |
SymbolMetadata.getTypeAttributes() |
List<Symbol.TypeVariableSymbol> |
Symbol.getTypeParameters() |
static List<TypeAnnotationPosition.TypePathEntry> |
TypeAnnotationPosition.getTypePathFromBinary(List<Integer> list)
Decode the binary representation for a type path and set
the
location field. |
List<Type.TypeVar> |
Type.ForAll.getTypeVariables() |
List<Type.TypeVar> |
Type.MethodType.getTypeVariables() |
List<Attribute> |
Attribute.Array.getValue() |
List<Type> |
Types.insert(List<Type> cl,
Type t)
Insert a type in a closure
|
List<Symbol.MethodSymbol> |
Types.interfaceCandidates(Type site,
Symbol.MethodSymbol ms) |
List<Type> |
Types.interfaces(Type t)
Return the interfaces implemented by this class.
|
List<Type> |
Types.intersect(List<Type> cl1,
List<Type> cl2)
Intersect two closures
|
List<Type> |
Types.lowerBoundArgtypes(Type t)
Returns the lower bounds of the formals of a method.
|
List<Type> |
Types.lowerBounds(List<Type> ts) |
static List<Type> |
Type.map(List<Type> ts,
Type.Mapping f)
map a type function over a list of types
|
List<Type> |
Types.newInstances(List<Type> tvars)
Create new vector of type variables from list of variables
changing all recursive bounds from old to new list.
|
List<Symbol.VarSymbol> |
Symbol.MethodSymbol.params() |
List<Symbol.MethodSymbol> |
Types.prune(List<Symbol.MethodSymbol> methods) |
List<Type> |
Types.subst(List<Type> ts,
List<Type> from,
List<Type> to) |
List<Type> |
Types.substBounds(List<Type> tvars,
List<Type> from,
List<Type> to) |
List<Type> |
Types.union(List<Type> cl1,
List<Type> cl2)
Form the union of two closures
|
Modifier and Type | Method and Description |
---|---|
Type |
Type.annotatedType(List<Attribute.TypeCompound> annos) |
SymbolMetadata |
SymbolMetadata.append(List<Attribute.Compound> l) |
void |
Symbol.appendAttributes(List<Attribute.Compound> l) |
void |
Symbol.appendClassInitTypeAttributes(List<Attribute.TypeCompound> l) |
SymbolMetadata |
SymbolMetadata.appendClassInitTypeAttributes(List<Attribute.TypeCompound> l) |
void |
Symbol.appendInitTypeAttributes(List<Attribute.TypeCompound> l) |
SymbolMetadata |
SymbolMetadata.appendInitTypeAttributes(List<Attribute.TypeCompound> l) |
void |
Symbol.appendUniqueTypeAttributes(List<Attribute.TypeCompound> l) |
SymbolMetadata |
SymbolMetadata.appendUniqueTypes(List<Attribute.TypeCompound> l) |
void |
Types.SignatureGenerator.assembleParamsSig(List<Type> typarams) |
static List<Type> |
Type.baseTypes(List<Type> ts)
Return the base types of a list of types.
|
List<Type> |
Types.capture(List<Type> ts)
Capture conversion as specified by the JLS.
|
static boolean |
Type.contains(List<Type> ts,
Type t) |
boolean |
Type.containsAny(List<Type> ts)
Does this type contain an occurrence of some type in 'ts'?
|
static boolean |
Type.containsAny(List<Type> ts1,
List<Type> ts2) |
boolean |
Types.containsTypeEquivalent(List<Type> ts,
List<Type> ss) |
Type |
Types.createMethodTypeWithParameters(Type original,
List<Type> newParams) |
Type |
Types.createMethodTypeWithThrown(Type original,
List<Type> newThrown) |
boolean |
Types.disjointTypes(List<Type> ts,
List<Type> ss) |
List<Type> |
Types.erasure(List<Type> ts) |
List<Type> |
Types.erasureRecursive(List<Type> ts) |
static List<Type> |
Type.filter(List<Type> ts,
Filter<Type> tf) |
List<Type> |
Types.freshTypeVariables(List<Type> types) |
static List<Type> |
Type.getModelTypes(List<Type> ts) |
Type |
Types.glb(List<Type> ts) |
boolean |
Types.SignatureGenerator.hasTypeVar(List<Type> l) |
List<Type> |
Types.insert(List<Type> cl,
Type t)
Insert a type in a closure
|
List<Type> |
Types.intersect(List<Type> cl1,
List<Type> cl2)
Intersect two closures
|
boolean |
Types.isDerivedRaw(List<Type> ts) |
static boolean |
Type.isErroneous(List<Type> ts) |
boolean |
Types.isSameTypes(List<Type> ts,
List<Type> ss)
Are corresponding elements of the lists the same type? If
lists are of different length, return false.
|
boolean |
Types.isSameTypes(List<Type> ts,
List<Type> ss,
boolean strict) |
boolean |
Types.isSubtypes(List<Type> ts,
List<Type> ss)
Are corresponding elements of ts subtypes of ss? If lists are
of different length, return false.
|
boolean |
Types.isSubtypesUnchecked(List<Type> ts,
List<Type> ss,
Warner warn)
Are corresponding elements of ts subtypes of ss, allowing
unchecked conversions? If lists are of different length,
return false.
|
boolean |
Types.isSubtypeUnchecked(Type t,
List<Type> ts,
Warner warn)
Is t a subtype of every type in given list `ts'?
(not defined for Method and ForAll types) Allows unchecked conversions. |
List<Type> |
Types.lowerBounds(List<Type> ts) |
Type |
Types.lub(List<Type> ts)
Return the least upper bound (lub) of set of types.
|
Type |
Types.makeCompoundType(List<Type> bounds)
Make a compound type from non-empty list of types
|
Type |
Types.makeCompoundType(List<Type> bounds,
boolean allInterfaces) |
Symbol.ClassSymbol |
Types.makeFunctionalInterfaceClass(Env<AttrContext> env,
Name name,
List<Type> targets,
long cflags)
Create a symbol for a class that implements a given functional interface
and overrides its functional descriptor.
|
static List<Type> |
Type.map(List<Type> ts,
Type.Mapping f)
map a type function over a list of types
|
List<Type> |
Types.newInstances(List<Type> tvars)
Create new vector of type variables from list of variables
changing all recursive bounds from old to new list.
|
SymbolMetadata |
SymbolMetadata.prepend(List<Attribute.Compound> l) |
void |
Symbol.prependAttributes(List<Attribute.Compound> l) |
protected String |
Printer.printMethodArgs(List<Type> args,
boolean varArgs,
Locale locale)
Converts a set of method argument types into their corresponding
localized string representation.
|
List<Symbol.MethodSymbol> |
Types.prune(List<Symbol.MethodSymbol> methods) |
void |
Type.UndetVar.setBounds(Type.UndetVar.InferenceBound ib,
List<Type> newBounds)
internal method used to override an undetvar bounds
|
void |
Types.setBounds(Type.TypeVar t,
List<Type> bounds)
Set the bounds field of the given type variable to reflect a
(possibly multiple) list of bounds.
|
void |
Types.setBounds(Type.TypeVar t,
List<Type> bounds,
boolean allInterfaces)
Same as
#setBounds(Type.TypeVar,List,Type) , except that
third parameter is computed directly, as follows: if all
all bounds are interface types, the computed supertype is Object,
otherwise the supertype is simply left null (in this case, the supertype
is assumed to be the head of the bound list passed as second argument). |
void |
SymbolMetadata.setClassInitTypeAttributes(List<Attribute.TypeCompound> a) |
void |
Symbol.setDeclarationAttributes(List<Attribute.Compound> a) |
void |
SymbolMetadata.setDeclarationAttributes(List<Attribute.Compound> a) |
void |
SymbolMetadata.setInitTypeAttributes(List<Attribute.TypeCompound> a) |
void |
Symbol.setTypeAttributes(List<Attribute.TypeCompound> a) |
void |
SymbolMetadata.setTypeAttributes(List<Attribute.TypeCompound> a) |
Type |
Types.subst(Type t,
List<Type> from,
List<Type> to)
Substitute all occurrences of a type in `from' with the
corresponding type in `to' in 't'.
|
List<Type> |
Types.subst(List<Type> ts,
List<Type> from,
List<Type> to) |
Type.TypeVar |
Types.substBound(Type.TypeVar t,
List<Type> from,
List<Type> to) |
void |
Type.UndetVar.substBounds(List<Type> from,
List<Type> to,
Types types)
replace types in all bounds - this might trigger listener notification
|
List<Type> |
Types.substBounds(List<Type> tvars,
List<Type> from,
List<Type> to) |
static String |
Type.toString(List<Type> ts)
The Java source which this type list represents.
|
List<Type> |
Types.union(List<Type> cl1,
List<Type> cl2)
Form the union of two closures
|
String |
Printer.visitSymbols(List<Symbol> ts,
Locale locale)
* Get a localized string representation for all the symbols in the input list.
|
String |
Printer.visitTypes(List<Type> ts,
Locale locale)
Get a localized string representation for all the types in the input list.
|
Constructor and Description |
---|
AnnotatedType(List<Attribute.TypeCompound> typeAnnotations,
Type underlyingType) |
Array(Type type,
List<Attribute> values) |
ClassType(Type outer,
List<Type> typarams,
Symbol.TypeSymbol tsym) |
Compound(Type type,
List<Pair<Symbol.MethodSymbol,Attribute>> values) |
ForAll(List<Type> tvars,
Type qtype) |
IntersectionClassType(List<Type> bounds,
Symbol.ClassSymbol csym,
boolean allInterfaces) |
MethodType(List<Type> argtypes,
Type restype,
List<Type> thrown,
Symbol.TypeSymbol methodClass) |
TypeCompound(Type type,
List<Pair<Symbol.MethodSymbol,Attribute>> values,
TypeAnnotationPosition position) |
UnionClassType(Type.ClassType ct,
List<? extends Type> alternatives) |
Modifier and Type | Field and Description |
---|---|
Map<Symbol.ClassSymbol,List<JCTree>> |
Lower.prunedTree
A hash table mapping local classes to a list of pruned trees.
|
Modifier and Type | Method and Description |
---|---|
List<Type> |
Flow.analyzeLambdaThrownTypes(Env<AttrContext> env,
JCTree.JCLambda that,
TreeMaker make) |
List<Type> |
Check.intersect(List<Type> ts1,
List<Type> ts2)
Form the intersection of two type lists.
|
<T extends JCTree> |
Lower.translate(List<T> trees,
Type type)
Visitor method: Translate list of trees.
|
<T extends JCTree> |
Lower.translate(List<T> trees,
JCTree.JCExpression enclOp)
Visitor method: Translate list of trees.
|
<T extends JCTree> |
TransTypes.translate(List<T> trees,
Type pt)
Visitor method: perform a type translation on list of trees.
|
<T extends JCTree> |
TransTypes.translateArgs(List<T> _args,
List<Type> parameters,
Type varargsElement,
Env<AttrContext> localEnv) |
List<JCTree> |
Lower.translateTopLevelClass(Env<AttrContext> env,
JCTree cdef,
TreeMaker make)
Translate a toplevel class and return a list consisting of
the translated class and translated versions of all inner classes.
|
Modifier and Type | Method and Description |
---|---|
void |
Attr.annotateType(JCTree tree,
List<JCTree.JCAnnotation> annotations)
Apply the annotations to the particular type.
|
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 |
Enter.complete(List<JCTree.JCCompilationUnit> trees,
Symbol.ClassSymbol c)
Main method: enter one class from a list of toplevel trees and
place the rest on uncompleted for later processing.
|
Type |
Infer.instantiateFunctionalInterface(JCDiagnostic.DiagnosticPosition pos,
Type funcInterface,
List<Type> paramTypes,
Check.CheckContext checkContext)
This method is used to infer a suitable target SAM in case the original
SAM type contains one or more wildcards.
|
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.
|
List<Type> |
Check.intersect(List<Type> ts1,
List<Type> ts2)
Form the intersection of two type lists.
|
void |
Enter.main(List<JCTree.JCCompilationUnit> trees)
Main method: enter all classes in a list of toplevel trees.
|
Object |
Resolve.methodArguments(List<Type> argtypes) |
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.
|
Symbol.MethodSymbol |
Resolve.resolveInternalConstructor(JCDiagnostic.DiagnosticPosition pos,
Env<AttrContext> env,
Type site,
List<Type> argtypes,
List<Type> typeargtypes)
Resolve a constructor, throw a fatal error if not found.
|
Symbol.MethodSymbol |
Resolve.resolveInternalMethod(JCDiagnostic.DiagnosticPosition pos,
Env<AttrContext> env,
Type site,
Name name,
List<Type> argtypes,
List<Type> typeargtypes)
Resolve a qualified method identifier, throw a fatal error if not
found.
|
<T extends JCTree> |
Lower.translate(List<T> trees,
Type type)
Visitor method: Translate list of trees.
|
<T extends JCTree> |
Lower.translate(List<T> trees,
JCTree.JCExpression enclOp)
Visitor method: Translate list of trees.
|
<T extends JCTree> |
TransTypes.translate(List<T> trees,
Type pt)
Visitor method: perform a type translation on list of trees.
|
<T extends JCTree> |
TransTypes.translateArgs(List<T> _args,
List<Type> parameters,
Type varargsElement,
Env<AttrContext> localEnv) |
void |
Check.validateAnnotations(List<JCTree.JCAnnotation> annotations,
Symbol s)
Check the annotations of a symbol.
|
void |
Check.validateTypeAnnotations(List<JCTree.JCAnnotation> annotations,
boolean isTypeParameter)
Check the type annotations.
|
Modifier and Type | Field and Description |
---|---|
protected Map<RelativePath.RelativeDirectory,List<String>> |
ZipArchive.map
The index for the contents of this archive.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
JavacFileManager.Archive.getFiles(RelativePath.RelativeDirectory subdirectory) |
List<String> |
JavacFileManager.MissingArchive.getFiles(RelativePath.RelativeDirectory subdirectory) |
List<String> |
ZipArchive.getFiles(RelativePath.RelativeDirectory subdirectory) |
List<String> |
ZipFileIndex.getFiles(RelativePath.RelativeDirectory path)
Returns a javac List of filenames within a directory in the ZipFileIndex.
|
List<String> |
ZipFileIndexArchive.getFiles(RelativePath.RelativeDirectory subdirectory) |
Modifier and Type | Field and Description |
---|---|
protected Map<Symbol.MethodSymbol,Map<JCTree,List<Symbol.VarSymbol>>> |
LVTRanges.aliveRangeClosingTrees |
Modifier and Type | Method and Description |
---|---|
List<Symbol.VarSymbol> |
LVTRanges.getVars(Symbol.MethodSymbol method,
JCTree tree) |
List<Symbol.VarSymbol> |
LVTRanges.removeEntry(Symbol.MethodSymbol method,
JCTree tree) |
Modifier and Type | Method and Description |
---|---|
void |
Gen.genArgs(List<JCTree.JCExpression> trees,
List<Type> pts)
Derived visitor method: generate code for a list of method arguments.
|
void |
Gen.genStats(List<? extends JCTree> trees,
Env<com.sun.tools.javac.jvm.Gen.GenContext> env)
Derived visitor method: generate code for a list of statements.
|
void |
Gen.genStats(List<JCTree.JCStatement> trees,
Env<com.sun.tools.javac.jvm.Gen.GenContext> env,
int crtFlags)
Derived visitor method: check whether CharacterRangeTable
should be emitted, if so, put a new entry into CRTable
and call method to generate bytecode.
|
void |
LVTRanges.setEntry(Symbol.MethodSymbol method,
JCTree tree,
List<Symbol.VarSymbol> vars) |
static int |
Code.width(List<Type> types)
The total width taken up by a vector of objects.
|
Modifier and Type | Field and Description |
---|---|
List<Closeable> |
JavaCompiler.closeables
A list of items to be closed when the compilation is complete.
|
Modifier and Type | Method and Description |
---|---|
List<JCTree.JCCompilationUnit> |
JavaCompiler.enterTrees(List<JCTree.JCCompilationUnit> roots)
Enter the symbols found in a list of parse trees.
|
List<JCTree.JCCompilationUnit> |
JavaCompiler.enterTreesIfNeeded(List<JCTree.JCCompilationUnit> roots)
Enter the symbols found in a list of parse trees if the compilation
is expected to proceed beyond anno processing into attr.
|
List<JCTree.JCCompilationUnit> |
JavaCompiler.parseFiles(Iterable<JavaFileObject> fileObjects)
Parses a list of files.
|
protected <T> List<T> |
JavaCompiler.stopIfError(CompileStates.CompileState cs,
List<T> list) |
Modifier and Type | Method and Description |
---|---|
void |
JavaCompiler.compile(List<JavaFileObject> sourceFileObject) |
void |
JavaCompiler.compile(List<JavaFileObject> sourceFileObjects,
List<String> classnames,
Iterable<? extends Processor> processors)
Main method: compile a list of files, return all compiled classes
|
Main.Result |
Main.compile(String[] args,
Context context,
List<JavaFileObject> fileObjects,
Iterable<? extends Processor> processors)
Programmatic interface for main function.
|
Main.Result |
Main.compile(String[] args,
String[] classNames,
Context context,
List<JavaFileObject> fileObjects,
Iterable<? extends Processor> processors) |
List<JCTree.JCCompilationUnit> |
JavaCompiler.enterTrees(List<JCTree.JCCompilationUnit> roots)
Enter the symbols found in a list of parse trees.
|
List<JCTree.JCCompilationUnit> |
JavaCompiler.enterTreesIfNeeded(List<JCTree.JCCompilationUnit> roots)
Enter the symbols found in a list of parse trees if the compilation
is expected to proceed beyond anno processing into attr.
|
JavaCompiler |
JavaCompiler.processAnnotations(List<JCTree.JCCompilationUnit> roots) |
JavaCompiler |
JavaCompiler.processAnnotations(List<JCTree.JCCompilationUnit> roots,
List<String> classnames)
Process any annotations found in the specified compilation units.
|
protected <T> List<T> |
JavaCompiler.stopIfError(CompileStates.CompileState cs,
List<T> list) |
Modifier and Type | Method and Description |
---|---|
List<Attribute.Compound> |
JavacElements.getAllAnnotationMirrors(Element e)
Returns all annotations of an element, whether
inherited or directly present.
|
Modifier and Type | Field and Description |
---|---|
List<Tokens.Comment> |
Tokens.Token.comments
Comment reader associated with this token
|
Modifier and Type | Method and Description |
---|---|
protected List<DCTree> |
DocCommentParser.blockContent()
Read block content, consisting of text, html and inline tags.
|
protected List<DCTree> |
DocCommentParser.blockTags()
Read a series of block tags, including their content.
|
protected List<JCTree> |
JavacParser.classOrInterfaceBodyDeclaration(Name className,
boolean isInterface)
ClassBodyDeclaration =
";"
| [STATIC] Block
| ModifiersOpt
( Type Ident
( VariableDeclaratorsRest ";" | MethodDeclaratorRest )
| VOID Ident MethodDeclaratorRest
| TypeParameters (Type | VOID) Ident MethodDeclaratorRest
| Ident ConstructorDeclaratorRest
| TypeParameters Ident ConstructorDeclaratorRest
| ClassOrInterfaceOrEnumDeclaration
)
InterfaceBodyDeclaration =
";"
| ModifiersOpt Type Ident
( ConstantDeclaratorsRest | InterfaceMethodDeclaratorRest ";" )
|
protected List<DCTree> |
DocCommentParser.htmlAttrs()
Read a series of HTML attributes, terminated by > .
|
protected List<DCTree> |
DocCommentParser.inlineContent()
Read general text content of an inline tag, including HTML entities and elements.
|
Modifier and Type | Method and Description |
---|---|
protected JCTree |
JavacParser.methodDeclaratorRest(int pos,
JCTree.JCModifiers mods,
JCTree.JCExpression type,
Name name,
List<JCTree.JCTypeParameter> typarams,
boolean isInterface,
boolean isVoid,
Tokens.Comment dc)
MethodDeclaratorRest =
FormalParameters BracketsOpt [Throws TypeList] ( MethodBody | [DEFAULT AnnotationValue] ";")
VoidMethodDeclaratorRest =
FormalParameters [Throws TypeList] ( MethodBody | ";")
InterfaceMethodDeclaratorRest =
FormalParameters BracketsOpt [THROWS TypeList] ";"
VoidInterfaceMethodDeclaratorRest =
FormalParameters [THROWS TypeList] ";"
ConstructorDeclaratorRest =
"(" FormalParameterListOpt ")" [THROWS TypeList] MethodBody
|
JCTree.JCExpression |
JavacParser.parseType(List<JCTree.JCAnnotation> annotations) |
Modifier and Type | Method and Description |
---|---|
JavaCompiler |
JavacProcessingEnvironment.doProcessing(Context context,
List<JCTree.JCCompilationUnit> roots,
List<Symbol.ClassSymbol> classSymbols,
Iterable<? extends Symbol.PackageSymbol> pckSymbols,
Log.DeferredDiagnosticHandler deferredDiagnosticHandler) |
Modifier and Type | Field and Description |
---|---|
List<JCTree.JCExpression> |
JCTree.JCTypeUnion.alternatives |
List<JCTree.JCAnnotation> |
JCTree.JCAnnotatedType.annotations |
List<JCTree.JCAnnotation> |
JCTree.JCModifiers.annotations |
List<JCTree.JCAnnotation> |
JCTree.JCNewArray.annotations |
List<JCTree.JCAnnotation> |
JCTree.JCTypeParameter.annotations
type annotations on type parameter
|
List<JCTree.JCExpression> |
JCTree.JCAnnotation.args |
List<JCTree.JCExpression> |
JCTree.JCMethodInvocation.args |
List<JCTree.JCExpression> |
JCTree.JCNewClass.args |
List<JCTree.JCExpression> |
JCTree.JCTypeApply.arguments |
List<DCTree> |
DCTree.DCStartElement.attrs |
List<DCTree> |
DCTree.DCDeprecated.body |
List<DCTree> |
DCTree.DCDocComment.body |
List<DCTree> |
DCTree.DCSince.body |
List<DCTree> |
DCTree.DCVersion.body |
List<JCTree.JCExpression> |
JCTree.JCTypeIntersection.bounds |
List<JCTree.JCExpression> |
JCTree.JCTypeParameter.bounds
bounds
|
List<JCTree.JCCase> |
JCTree.JCSwitch.cases |
List<JCTree.JCCatch> |
JCTree.JCTry.catchers |
List<DCTree> |
DCTree.DCUnknownBlockTag.content |
List<DCTree> |
DCTree.DCUnknownInlineTag.content |
List<JCTree> |
JCTree.JCClassDecl.defs
all variables and methods defined in this class
|
List<JCTree> |
JCTree.JCCompilationUnit.defs
All definitions in this file (ClassDef, Import, and Skip)
|
List<JCTree.JCVariableDecl> |
JCTree.LetExpr.defs |
List<DCTree> |
DCTree.DCParam.description |
List<DCTree> |
DCTree.DCReturn.description |
List<DCTree> |
DCTree.DCSerial.description |
List<DCTree> |
DCTree.DCSerialData.description |
List<DCTree> |
DCTree.DCSerialField.description |
List<DCTree> |
DCTree.DCThrows.description |
List<List<JCTree.JCAnnotation>> |
JCTree.JCNewArray.dimAnnotations |
List<JCTree.JCExpression> |
JCTree.JCNewArray.dims |
List<JCTree.JCExpression> |
JCTree.JCNewArray.elems |
List<? extends JCTree> |
JCTree.JCErroneous.errs |
List<DCTree> |
DCTree.DCDocComment.firstSentence |
List<JCTree.JCExpression> |
JCTree.JCClassDecl.implementing
the interfaces implemented by this class
|
List<JCTree.JCStatement> |
JCTree.JCForLoop.init |
List<DCTree> |
DCTree.DCLink.label |
List<DCTree> |
DCTree.DCAuthor.name |
List<JCTree.JCAnnotation> |
JCTree.JCCompilationUnit.packageAnnotations |
List<JCTree.JCVariableDecl> |
JCTree.JCLambda.params |
List<JCTree.JCVariableDecl> |
JCTree.JCMethodDecl.params
value parameters
|
List<JCTree> |
DCTree.DCReference.paramTypes |
List<DCTree> |
DCTree.DCSee.reference |
List<JCTree> |
JCTree.JCTry.resources |
List<JCTree.JCStatement> |
JCTree.JCBlock.stats
statements
|
List<JCTree.JCStatement> |
JCTree.JCCase.stats |
List<JCTree.JCExpressionStatement> |
JCTree.JCForLoop.step |
List<DCTree> |
DCTree.DCDocComment.tags |
List<Type> |
JCTree.JCFunctionalExpression.targets
list of target types inferred for this functional expression.
|
List<JCTree.JCExpression> |
JCTree.JCMethodDecl.thrown
exceptions thrown by this method
|
List<JCTree.JCTypeParameter> |
JCTree.JCClassDecl.typarams
formal class parameters
|
List<JCTree.JCTypeParameter> |
JCTree.JCMethodDecl.typarams
type parameters
|
List<JCTree.JCExpression> |
JCTree.JCMemberReference.typeargs |
List<JCTree.JCExpression> |
JCTree.JCMethodInvocation.typeargs |
List<JCTree.JCExpression> |
JCTree.JCNewClass.typeargs |
List<DCTree> |
DCTree.DCAttribute.value |
Modifier and Type | Field and Description |
---|---|
List<List<JCTree.JCAnnotation>> |
JCTree.JCNewArray.dimAnnotations |
Modifier and Type | Method and Description |
---|---|
List<JCTree.JCAnnotation> |
TreeMaker.Annotations(List<Attribute.Compound> attributes)
Create annotation trees from annotations.
|
static List<JCTree.JCExpression> |
TreeInfo.args(JCTree t) |
<T extends JCTree> |
TreeCopier.copy(List<T> trees) |
<T extends JCTree> |
TreeCopier.copy(List<T> trees,
P p) |
List<JCTree.JCAnnotation> |
JCTree.JCAnnotatedType.getAnnotations() |
List<JCTree.JCAnnotation> |
JCTree.JCModifiers.getAnnotations() |
List<JCTree.JCAnnotation> |
JCTree.JCNewArray.getAnnotations() |
List<JCTree.JCAnnotation> |
JCTree.JCTypeParameter.getAnnotations() |
List<JCTree.JCExpression> |
JCTree.JCAnnotation.getArguments() |
List<JCTree.JCExpression> |
JCTree.JCMethodInvocation.getArguments() |
List<JCTree.JCExpression> |
JCTree.JCNewClass.getArguments() |
List<? extends DocTree> |
DCTree.DCStartElement.getAttributes() |
List<? extends DocTree> |
DCTree.DCDocComment.getBlockTags() |
List<? extends DocTree> |
DCTree.DCDeprecated.getBody() |
List<? extends DocTree> |
DCTree.DCDocComment.getBody() |
List<? extends DocTree> |
DCTree.DCSince.getBody() |
List<? extends DocTree> |
DCTree.DCVersion.getBody() |
List<JCTree.JCExpression> |
JCTree.JCTypeIntersection.getBounds() |
List<JCTree.JCExpression> |
JCTree.JCTypeParameter.getBounds() |
List<JCTree.JCCase> |
JCTree.JCSwitch.getCases() |
List<JCTree.JCCatch> |
JCTree.JCTry.getCatches() |
List<? extends DocTree> |
DCTree.DCUnknownBlockTag.getContent() |
List<? extends DocTree> |
DCTree.DCUnknownInlineTag.getContent() |
List<? extends DocTree> |
DCTree.DCParam.getDescription() |
List<? extends DocTree> |
DCTree.DCReturn.getDescription() |
List<? extends DocTree> |
DCTree.DCSerial.getDescription() |
List<? extends DocTree> |
DCTree.DCSerialData.getDescription() |
List<? extends DocTree> |
DCTree.DCSerialField.getDescription() |
List<? extends DocTree> |
DCTree.DCThrows.getDescription() |
List<List<JCTree.JCAnnotation>> |
JCTree.JCNewArray.getDimAnnotations() |
List<JCTree.JCExpression> |
JCTree.JCNewArray.getDimensions() |
List<? extends JCTree> |
JCTree.JCErroneous.getErrorTrees() |
List<? extends DocTree> |
DCTree.DCDocComment.getFirstSentence() |
List<JCTree.JCExpression> |
JCTree.JCClassDecl.getImplementsClause() |
List<JCTree.JCImport> |
JCTree.JCCompilationUnit.getImports() |
List<JCTree.JCStatement> |
JCTree.JCForLoop.getInitializer() |
List<JCTree.JCExpression> |
JCTree.JCNewArray.getInitializers() |
List<? extends DocTree> |
DCTree.DCLink.getLabel() |
List<JCTree> |
JCTree.JCClassDecl.getMembers() |
List<? extends DocTree> |
DCTree.DCAuthor.getName() |
List<JCTree.JCAnnotation> |
JCTree.JCCompilationUnit.getPackageAnnotations() |
List<JCTree.JCVariableDecl> |
JCTree.JCMethodDecl.getParameters() |
List<? extends DocTree> |
DCTree.DCSee.getReference() |
List<JCTree> |
JCTree.JCTry.getResources() |
List<JCTree.JCStatement> |
JCTree.JCBlock.getStatements() |
List<JCTree.JCStatement> |
JCTree.JCCase.getStatements() |
List<JCTree.JCExpression> |
JCTree.JCMethodDecl.getThrows() |
List<JCTree.JCExpression> |
JCTree.JCTypeUnion.getTypeAlternatives() |
List<JCTree.JCExpression> |
JCTree.JCMemberReference.getTypeArguments() |
List<JCTree.JCExpression> |
JCTree.JCMethodInvocation.getTypeArguments() |
List<JCTree.JCExpression> |
JCTree.JCNewClass.getTypeArguments() |
List<JCTree.JCExpression> |
JCTree.JCTypeApply.getTypeArguments() |
List<JCTree> |
JCTree.JCCompilationUnit.getTypeDecls() |
List<JCTree.JCTypeParameter> |
JCTree.JCClassDecl.getTypeParameters() |
List<JCTree.JCTypeParameter> |
JCTree.JCMethodDecl.getTypeParameters() |
List<JCTree.JCExpressionStatement> |
JCTree.JCForLoop.getUpdate() |
List<DCTree> |
DCTree.DCAttribute.getValue() |
List<JCTree.JCExpression> |
TreeMaker.Idents(List<JCTree.JCVariableDecl> params)
Create a list of identifiers referring to the variables declared
in given list of variable declarations.
|
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 List<JCTree> |
TreeInfo.pathFor(JCTree node,
JCTree.JCCompilationUnit unit) |
<T extends JCTree> |
TreeTranslator.translate(List<T> trees)
Visitor method: translate a list of nodes.
|
List<JCTree.JCAnnotation> |
TreeTranslator.translateAnnotations(List<JCTree.JCAnnotation> trees)
Visitor method: translate a list of catch clauses in try statements.
|
List<JCTree.JCCase> |
TreeTranslator.translateCases(List<JCTree.JCCase> trees)
Visitor method: translate a list of case parts of switch statements.
|
List<JCTree.JCCatch> |
TreeTranslator.translateCatchers(List<JCTree.JCCatch> trees)
Visitor method: translate a list of catch clauses in try statements.
|
List<JCTree.JCTypeParameter> |
TreeTranslator.translateTypeParams(List<JCTree.JCTypeParameter> trees)
Visitor method: translate a list of type parameters.
|
List<JCTree.JCVariableDecl> |
TreeTranslator.translateVarDefs(List<JCTree.JCVariableDecl> trees)
Visitor method: translate a list of variable definitions.
|
List<JCTree.JCTypeParameter> |
TreeMaker.TypeParams(List<Type> typarams)
Create a list of type parameter trees from a list of type variables.
|
static List<Type> |
TreeInfo.types(List<? extends JCTree> trees)
Return the types of a list of trees.
|
List<JCTree.JCExpression> |
TreeMaker.Types(List<Type> ts)
Create a list of trees representing given list of types.
|
Modifier and Type | Method and Description |
---|---|
List<List<JCTree.JCAnnotation>> |
JCTree.JCNewArray.getDimAnnotations() |
Modifier and Type | Field and Description |
---|---|
List<A> |
List.tail
The remainder of the list except for its first element, supposed
to be immutable.
|
Modifier and Type | Method and Description |
---|---|
List<A> |
List.append(A x)
Append given element at length, forming and returning
a new list.
|
List<A> |
List.appendList(List<A> x)
Append given list at length, forming and returning
a new list.
|
List<A> |
List.appendList(ListBuffer<A> x)
Append given list buffer at length, forming and returning a new
list.
|
static <T> List<T> |
List.convert(Class<T> klass,
List<?> list) |
List<A> |
List.diff(List<A> that) |
static List<Name> |
Convert.enclosingCandidates(Name name) |
static <A> List<A> |
List.fill(int len,
A init)
Deprecated.
|
static <A> List<A> |
List.filter(List<A> l,
A elem)
Returns the list obtained from 'l' after removing all elements 'elem'
|
protected List<String> |
AbstractDiagnosticFormatter.formatSubdiagnostics(JCDiagnostic d,
Locale l)
Format all the subdiagnostics attached to a given diagnostic.
|
static <A> List<A> |
List.from(A[] array)
Construct a list consisting all elements of given array.
|
static <A> List<A> |
List.from(Iterable<? extends A> coll) |
List<ResourceBundle> |
JavacMessages.getBundles(Locale locale) |
List<JCDiagnostic> |
JCDiagnostic.getSubdiagnostics()
Get the subdiagnostic list
|
List<JCDiagnostic> |
JCDiagnostic.MultilineDiagnostic.getSubdiagnostics() |
protected List<JCDiagnostic> |
RichDiagnosticFormatter.getWhereClauses()
Build a list of multiline diagnostics containing detailed info about
type-variables, captured types, and intersection types
|
List<A> |
List.intersect(List<A> that) |
static <A> List<A> |
List.nil()
Construct an empty list.
|
static <A> List<A> |
List.of(A x1)
Construct a list consisting of given element.
|
static <A> List<A> |
List.of(A x1,
A x2)
Construct a list consisting of given elements.
|
static <A> List<A> |
List.of(A x1,
A x2,
A x3)
Construct a list consisting of given elements.
|
static <A> List<A> |
List.of(A x1,
A x2,
A x3,
A... rest)
Construct a list consisting of given elements.
|
List<A> |
List.prepend(A x)
Prepend given element to front of list, forming and returning
a new list.
|
List<A> |
List.prependList(List<A> xs)
Prepend given list of elements to front of list, forming and returning
a new list.
|
List<A> |
List.reverse()
Reverse list.
|
List<A> |
List.setTail(List<A> tail) |
List<A> |
List.take(int n)
Create a new list from the first
n elements of this list |
static <D,N extends GraphUtils.TarjanNode<D>> |
GraphUtils.tarjan(Iterable<? extends N> nodes)
Tarjan's algorithm to determine strongly connected components of a
directed graph in linear time.
|
List<A> |
ListBuffer.toList()
Convert buffer to a list of all its elements.
|
Modifier and Type | Method and Description |
---|---|
static <D,N extends GraphUtils.TarjanNode<D>> |
GraphUtils.tarjan(Iterable<? extends N> nodes)
Tarjan's algorithm to determine strongly connected components of a
directed graph in linear time.
|
Modifier and Type | Method and Description |
---|---|
List<A> |
List.appendList(List<A> x)
Append given list at length, forming and returning
a new list.
|
ListBuffer<A> |
ListBuffer.appendList(List<A> xs)
Append all elements in a list to buffer.
|
static <T> List<T> |
List.convert(Class<T> klass,
List<?> list) |
List<A> |
List.diff(List<A> that) |
static boolean |
List.equals(List<?> xs,
List<?> ys)
Are the two lists the same?
|
static <A> List<A> |
List.filter(List<A> l,
A elem)
Returns the list obtained from 'l' after removing all elements 'elem'
|
List<A> |
List.intersect(List<A> that) |
List<A> |
List.prependList(List<A> xs)
Prepend given list of elements to front of list, forming and returning
a new list.
|
List<A> |
List.setTail(List<A> tail) |
Constructor and Description |
---|
MultilineDiagnostic(JCDiagnostic other,
List<JCDiagnostic> subdiagnostics) |
Copyright © 2017 earcam. All rights reserved.