|
||||||||||
| 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.FullJavaVisitor
edu.rice.cs.javalanglevels.BodyBodyFullJavaVisitor
public class BodyBodyFullJavaVisitor
Language Level Visitor that represents the FullJava Language Level. Only builds the symbol table). No syntax checking is performed. All .java files will be compiled by "javac", which will check for syntax errors.
| Nested Class Summary | |
|---|---|
static class |
BodyBodyFullJavaVisitor.BodyBodyFullJavaVisitorTest
Test most of the methods declared above right here. |
| Nested classes/interfaces inherited from class edu.rice.cs.javalanglevels.FullJavaVisitor |
|---|
FullJavaVisitor.FullJavaVisitorTest |
| 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 | |
|---|---|
BodyBodyFullJavaVisitor(BodyData bodyData,
java.io.File file,
java.lang.String packageName,
java.lang.String enclosingClassName,
java.util.LinkedList<java.lang.String> importedFiles,
java.util.LinkedList<java.lang.String> importedPackages,
java.util.HashSet<java.lang.String> classesInThisFile,
java.util.Hashtable<java.lang.String,Triple<SourceInfo,LanguageLevelVisitor,SymbolData>> continuations,
java.util.LinkedList<Command> fixUps,
java.util.HashSet<java.lang.String> innerClassesInThisBody)
Legacy Constructor for BodyBodyFullJavaVisitor. |
|
BodyBodyFullJavaVisitor(BodyData bodyData,
java.io.File file,
java.lang.String packageName,
java.lang.String enclosingClassName,
java.util.LinkedList<java.lang.String> importedFiles,
java.util.LinkedList<java.lang.String> importedPackages,
java.util.HashSet<java.lang.String> classesInThisFile,
java.util.Hashtable<java.lang.String,Triple<SourceInfo,LanguageLevelVisitor,SymbolData>> continuations,
java.util.LinkedList<Command> fixUps,
java.util.HashSet<java.lang.String> innerClassesInThisBody,
java.util.HashMap<java.lang.String,SymbolData> genericTypes)
Preferred constructor for BodyBodyFullJavaVisitor. |
|
| Method Summary | |
|---|---|
java.lang.Void |
forBlock(Block that)
Process an instance of Block. |
java.lang.Void |
forCatchBlock(CatchBlock that)
Visit the block as in forBlock(), but first add the exception parameter as a variable in that block. |
java.lang.Void |
forComplexAnonymousClassInstantiation(ComplexAnonymousClassInstantiation that)
Delegate to helper method. |
java.lang.Void |
forInnerClassDef(InnerClassDef that)
Process a local class definition |
java.lang.Void |
forInnerInterfaceDef(InnerInterfaceDef that)
Process a local interface definition |
java.lang.Void |
forInstanceInitializer(InstanceInitializer that)
Process an instance of InstanceInitializer. |
java.lang.Void |
forMethodDefDoFirst(MethodDef that)
Ignore MethodDef. |
java.lang.Void |
forSimpleAnonymousClassInstantiation(SimpleAnonymousClassInstantiation that)
Delegate to helper method. |
java.lang.Void |
forTryCatchStatementDoFirst(TryCatchStatement that)
Ignore TryCatchStatement. |
java.lang.Void |
forVariableDeclarationOnly(VariableDeclaration that)
Adds the variables that were declared to the body data and make sure that no two variables have the same name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BodyBodyFullJavaVisitor(BodyData bodyData,
java.io.File file,
java.lang.String packageName,
java.lang.String enclosingClassName,
java.util.LinkedList<java.lang.String> importedFiles,
java.util.LinkedList<java.lang.String> importedPackages,
java.util.HashSet<java.lang.String> classesInThisFile,
java.util.Hashtable<java.lang.String,Triple<SourceInfo,LanguageLevelVisitor,SymbolData>> continuations,
java.util.LinkedList<Command> fixUps,
java.util.HashSet<java.lang.String> innerClassesInThisBody,
java.util.HashMap<java.lang.String,SymbolData> genericTypes)
bodyData - The BodyData 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 symbolTableinnerClassesInThisBody - A list of the names of the inner classes in the enclosing classgenericTypes - A table mapping the generic type names that are in scope to their bounds
public BodyBodyFullJavaVisitor(BodyData bodyData,
java.io.File file,
java.lang.String packageName,
java.lang.String enclosingClassName,
java.util.LinkedList<java.lang.String> importedFiles,
java.util.LinkedList<java.lang.String> importedPackages,
java.util.HashSet<java.lang.String> classesInThisFile,
java.util.Hashtable<java.lang.String,Triple<SourceInfo,LanguageLevelVisitor,SymbolData>> continuations,
java.util.LinkedList<Command> fixUps,
java.util.HashSet<java.lang.String> innerClassesInThisBody)
bodyData - The BodyData 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 java.lang.Void forMethodDefDoFirst(MethodDef that)
forMethodDefDoFirst in class JExpressionIFPrunableDepthFirstVisitorpublic java.lang.Void forInstanceInitializer(InstanceInitializer that)
JExpressionIFVisitor
forInstanceInitializer in interface JExpressionIFVisitor<java.lang.Void>forInstanceInitializer in class JExpressionIFPrunableDepthFirstVisitorpublic java.lang.Void forBlock(Block that)
JExpressionIFVisitor
forBlock in interface JExpressionIFVisitor<java.lang.Void>forBlock in class JExpressionIFPrunableDepthFirstVisitorpublic java.lang.Void forCatchBlock(CatchBlock that)
forCatchBlock in interface JExpressionIFVisitor<java.lang.Void>forCatchBlock in class JExpressionIFPrunableDepthFirstVisitorpublic java.lang.Void forVariableDeclarationOnly(VariableDeclaration that)
forVariableDeclarationOnly in class JExpressionIFPrunableDepthFirstVisitorpublic java.lang.Void forTryCatchStatementDoFirst(TryCatchStatement that)
forTryCatchStatementDoFirst in class JExpressionIFPrunableDepthFirstVisitorpublic java.lang.Void forInnerClassDef(InnerClassDef that)
forInnerClassDef in interface JExpressionIFVisitor<java.lang.Void>forInnerClassDef in class JExpressionIFPrunableDepthFirstVisitorpublic java.lang.Void forInnerInterfaceDef(InnerInterfaceDef that)
forInnerInterfaceDef in interface JExpressionIFVisitor<java.lang.Void>forInnerInterfaceDef in class JExpressionIFPrunableDepthFirstVisitorpublic java.lang.Void forSimpleAnonymousClassInstantiation(SimpleAnonymousClassInstantiation that)
forSimpleAnonymousClassInstantiation in interface JExpressionIFVisitor<java.lang.Void>forSimpleAnonymousClassInstantiation in class JExpressionIFPrunableDepthFirstVisitorpublic java.lang.Void forComplexAnonymousClassInstantiation(ComplexAnonymousClassInstantiation that)
forComplexAnonymousClassInstantiation in interface JExpressionIFVisitor<java.lang.Void>forComplexAnonymousClassInstantiation in class JExpressionIFPrunableDepthFirstVisitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||