|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.javalanglevels.JExpressionIFPrunableDepthFirstVisitor
edu.rice.cs.javalanglevels.LanguageLevelVisitor
edu.rice.cs.javalanglevels.IntermediateVisitor
edu.rice.cs.javalanglevels.ClassBodyIntermediateVisitor
public class ClassBodyIntermediateVisitor
| Nested Class Summary | |
|---|---|
static class |
ClassBodyIntermediateVisitor.ClassBodyIntermediateVisitorTest
Test the methods in the above (enclosing) class. |
| Nested classes/interfaces inherited from class edu.rice.cs.javalanglevels.IntermediateVisitor |
|---|
IntermediateVisitor.IntermediateVisitorTest |
| Nested classes/interfaces inherited from class edu.rice.cs.javalanglevels.LanguageLevelVisitor |
|---|
LanguageLevelVisitor.LanguageLevelVisitorTest |
| Field Summary |
|---|
| Fields inherited from class edu.rice.cs.javalanglevels.LanguageLevelVisitor |
|---|
_genericTypes, _log, errors, FINAL_MAV, PACKAGE_MAV, PRIVATE_MAV, PROTECTED_MAV, PUBLIC_MAV, symbolTable |
| Constructor Summary | |
|---|---|
ClassBodyIntermediateVisitor(SymbolData sd,
String className,
File file,
String packageName,
LinkedList<String> importedFiles,
LinkedList<String> importedPackages,
HashSet<String> classesInThisFile,
Hashtable<String,Triple<SourceInfo,LanguageLevelVisitor,SymbolData>> continuations,
LinkedList<Command> fixUps)
Constructor for ClassBodyAdvancedVisitor. |
|
| Method Summary | |
|---|---|
Void |
forAbstractMethodDef(AbstractMethodDef that)
Create a method data corresponding to this method declaration. |
Void |
forAbstractMethodDefDoFirst(AbstractMethodDef that)
Ignore AbstractMake sure that this abstract method def is declared to be abstract. |
Void |
forComplexAnonymousClassInstantiation(ComplexAnonymousClassInstantiation that)
Delegate to method in LLV. |
Void |
forConcreteMethodDef(ConcreteMethodDef that)
Creates a method data corresponding to this method declaration, and then visit the concrete method def with a new bodybody visitor, passing it the enclosing method data. |
Void |
forConstructorDef(ConstructorDef that)
Create a constructor corresponding to the specifications in the ConstructorDef. |
Void |
forInnerClassDef(InnerClassDef that)
Process a local inner class definition |
Void |
forInnerInterfaceDef(InnerInterfaceDef that)
Call the method in FullJavaVisitor since it's common to this and FullJavaBodyFullJavaVisitor. |
Void |
forInstanceInitializerDoFirst(InstanceInitializer that)
Add an appropriate error |
Void |
forSimpleAnonymousClassInstantiation(SimpleAnonymousClassInstantiation that)
Delegate to method in LLV. |
Void |
forStatementDoFirst(Statement that)
|
Void |
forVariableDeclarationOnly(VariableDeclaration that)
Processes a field declaration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassBodyIntermediateVisitor(SymbolData sd,
String className,
File file,
String packageName,
LinkedList<String> importedFiles,
LinkedList<String> importedPackages,
HashSet<String> classesInThisFile,
Hashtable<String,Triple<SourceInfo,LanguageLevelVisitor,SymbolData>> continuations,
LinkedList<Command> fixUps)
sd - The SymbolData that encloses the context we are visiting.file - The source file this came from.packageName - The package the source file is inimportedPackages - A list of package names that were specifically importedclassesInThisFile - A list of the classes that are yet to be defined in this source filecontinuations - A hashtable corresponding to the continuations (unresolved Symbol Datas) that will need to
be resolvedfixUps - A list of commands to be performed after this pass to fixup the symbolTable| Method Detail |
|---|
public Void forStatementDoFirst(Statement that)
forStatementDoFirst in class JExpressionIFPrunableDepthFirstVisitorpublic Void forAbstractMethodDefDoFirst(AbstractMethodDef that)
forAbstractMethodDefDoFirst in class LanguageLevelVisitorpublic Void forInstanceInitializerDoFirst(InstanceInitializer that)
forInstanceInitializerDoFirst in class JExpressionIFPrunableDepthFirstVisitorpublic Void forVariableDeclarationOnly(VariableDeclaration that)
forVariableDeclarationOnly in class JExpressionIFPrunableDepthFirstVisitorpublic Void forInnerInterfaceDef(InnerInterfaceDef that)
forInnerInterfaceDef in interface JExpressionIFVisitor<Void>forInnerInterfaceDef in class JExpressionIFPrunableDepthFirstVisitorpublic Void forInnerClassDef(InnerClassDef that)
forInnerClassDef in interface JExpressionIFVisitor<Void>forInnerClassDef in class JExpressionIFPrunableDepthFirstVisitorpublic Void forConcreteMethodDef(ConcreteMethodDef that)
forConcreteMethodDef in interface JExpressionIFVisitor<Void>forConcreteMethodDef in class JExpressionIFPrunableDepthFirstVisitorpublic Void forAbstractMethodDef(AbstractMethodDef that)
forAbstractMethodDef in interface JExpressionIFVisitor<Void>forAbstractMethodDef in class JExpressionIFPrunableDepthFirstVisitorpublic Void forConstructorDef(ConstructorDef that)
forConstructorDef in interface JExpressionIFVisitor<Void>forConstructorDef in class JExpressionIFPrunableDepthFirstVisitorpublic Void forComplexAnonymousClassInstantiation(ComplexAnonymousClassInstantiation that)
forComplexAnonymousClassInstantiation in interface JExpressionIFVisitor<Void>forComplexAnonymousClassInstantiation in class JExpressionIFPrunableDepthFirstVisitorpublic Void forSimpleAnonymousClassInstantiation(SimpleAnonymousClassInstantiation that)
forSimpleAnonymousClassInstantiation in interface JExpressionIFVisitor<Void>forSimpleAnonymousClassInstantiation in class JExpressionIFPrunableDepthFirstVisitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||