Modifier and Type | Method and Description |
---|---|
JCTree.JCClassDecl |
JavacTrees.getTree(TypeElement element) |
Modifier and Type | Method and Description |
---|---|
void |
TypeAnnotations.organizeTypeAnnotationsBodies(JCTree.JCClassDecl tree)
This version only visits types in bodies, that is, field initializers,
top-level blocks, and method bodies, and should be called from Attr.
|
void |
TypeAnnotations.organizeTypeAnnotationsSignatures(Env<AttrContext> env,
JCTree.JCClassDecl tree)
Separate type annotations from declaration annotations and
determine the correct positions for type annotations.
|
void |
TypeAnnotations.validateTypeAnnotationsSignatures(Env<AttrContext> env,
JCTree.JCClassDecl tree) |
Modifier and Type | Field and Description |
---|---|
JCTree.JCClassDecl |
Env.enclClass
The next enclosing class definition.
|
Modifier and Type | Method and Description |
---|---|
void |
Check.checkFunctionalInterface(JCTree.JCClassDecl tree,
Symbol.ClassSymbol cs) |
Env<AttrContext> |
Enter.classEnv(JCTree.JCClassDecl tree,
Env<AttrContext> env)
Create a fresh environment for class bodies.
|
void |
Attr.visitClassDef(JCTree.JCClassDecl tree) |
void |
Enter.visitClassDef(JCTree.JCClassDecl tree) |
void |
Flow.AbstractAssignAnalyzer.visitClassDef(JCTree.JCClassDecl tree) |
void |
Flow.AssignAnalyzer.visitClassDef(JCTree.JCClassDecl tree) |
void |
LambdaToMethod.visitClassDef(JCTree.JCClassDecl tree)
Visit a class.
|
void |
Lower.visitClassDef(JCTree.JCClassDecl tree) |
void |
TransTypes.visitClassDef(JCTree.JCClassDecl tree) |
Modifier and Type | Method and Description |
---|---|
boolean |
Gen.genClass(Env<AttrContext> env,
JCTree.JCClassDecl cdef)
Generate code for a class definition.
|
Modifier and Type | Method and Description |
---|---|
Queue<Pair<Env<AttrContext>,JCTree.JCClassDecl>> |
JavaCompiler.desugar(Queue<Env<AttrContext>> envs)
Prepare attributed parse trees, in conjunction with their attribution contexts,
for source or code generation.
|
Modifier and Type | Method and Description |
---|---|
protected void |
JavaCompiler.desugar(Env<AttrContext> env,
Queue<Pair<Env<AttrContext>,JCTree.JCClassDecl>> results)
Prepare attributed parse trees, in conjunction with their attribution contexts,
for source or code generation.
|
void |
JavaCompiler.generate(Queue<Pair<Env<AttrContext>,JCTree.JCClassDecl>> queue)
Generates the source or class file for a list of classes.
|
void |
JavaCompiler.generate(Queue<Pair<Env<AttrContext>,JCTree.JCClassDecl>> queue,
Queue<JavaFileObject> results) |
Modifier and Type | Method and Description |
---|---|
protected JCTree.JCClassDecl |
JavacParser.classDeclaration(JCTree.JCModifiers mods,
Tokens.Comment dc)
ClassDeclaration = CLASS Ident TypeParametersOpt [EXTENDS Type]
[IMPLEMENTS TypeList] ClassBody
|
protected JCTree.JCClassDecl |
JavacParser.enumDeclaration(JCTree.JCModifiers mods,
Tokens.Comment dc)
EnumDeclaration = ENUM Ident [IMPLEMENTS TypeList] EnumBody
|
protected JCTree.JCClassDecl |
JavacParser.interfaceDeclaration(JCTree.JCModifiers mods,
Tokens.Comment dc)
InterfaceDeclaration = INTERFACE Ident TypeParametersOpt
[EXTENDS TypeList] InterfaceBody
|
Modifier and Type | Field and Description |
---|---|
JCTree.JCClassDecl |
JCTree.JCNewClass.def |
Modifier and Type | Method and Description |
---|---|
JCTree.JCClassDecl |
TreeMaker.AnonymousClassDef(JCTree.JCModifiers mods,
List<JCTree> defs) |
JCTree.JCClassDecl |
JCTree.Factory.ClassDef(JCTree.JCModifiers mods,
Name name,
List<JCTree.JCTypeParameter> typarams,
JCTree.JCExpression extending,
List<JCTree.JCExpression> implementing,
List<JCTree> defs) |
JCTree.JCClassDecl |
TreeMaker.ClassDef(JCTree.JCModifiers mods,
Name name,
List<JCTree.JCTypeParameter> typarams,
JCTree.JCExpression extending,
List<JCTree.JCExpression> implementing,
List<JCTree> defs) |
JCTree.JCClassDecl |
JCTree.JCNewClass.getClassBody() |
Modifier and Type | Method and Description |
---|---|
JCTree.JCNewClass |
JCTree.Factory.NewClass(JCTree.JCExpression encl,
List<JCTree.JCExpression> typeargs,
JCTree.JCExpression clazz,
List<JCTree.JCExpression> args,
JCTree.JCClassDecl def) |
JCTree.JCNewClass |
TreeMaker.NewClass(JCTree.JCExpression encl,
List<JCTree.JCExpression> typeargs,
JCTree.JCExpression clazz,
List<JCTree.JCExpression> args,
JCTree.JCClassDecl def) |
void |
Pretty.printUnit(JCTree.JCCompilationUnit tree,
JCTree.JCClassDecl cdef)
Print unit consisting of package clause and import statements in toplevel,
followed by class definition.
|
void |
JCTree.Visitor.visitClassDef(JCTree.JCClassDecl that) |
void |
Pretty.visitClassDef(JCTree.JCClassDecl tree) |
void |
TreeScanner.visitClassDef(JCTree.JCClassDecl tree) |
void |
TreeTranslator.visitClassDef(JCTree.JCClassDecl tree) |
Constructor and Description |
---|
JCNewClass(JCTree.JCExpression encl,
List<JCTree.JCExpression> typeargs,
JCTree.JCExpression clazz,
List<JCTree.JCExpression> args,
JCTree.JCClassDecl def) |
Copyright © 2017 earcam. All rights reserved.