public class Clean extends Pass
SemanticAnalysis
, this pass compiles the list of files created by
the LBJava compiler and removes them.SemanticAnalysis
ast, canAddErrorsAndWarnings, fatalError, root
Constructor and Description |
---|
Clean(AST ast)
Instantiates a pass that runs on an entire
AST . |
Modifier and Type | Method and Description |
---|---|
protected void |
anonymousFiles(Name name)
Adds files generated for anonymous classes associated with a particular named classifier to
the remove list.
|
protected void |
defaultFiles(CodeGenerator n)
Adds the default files (
*.java and *.class ) to the remove list. |
void |
run(AST ast)
Runs this pass on all nodes of the indicated type.
|
void |
run(ClassifierName cn)
Runs this pass on all nodes of the indicated type.
|
void |
run(CodedClassifier cc)
Runs this pass on all nodes of the indicated type.
|
void |
run(CompositeGenerator cg)
Runs this pass on all nodes of the indicated type.
|
void |
run(Conjunction c)
Runs this pass on all nodes of the indicated type.
|
void |
run(ConstraintDeclaration c)
Runs this pass on all nodes of the indicated type.
|
void |
run(InferenceDeclaration i)
Runs this pass on all nodes of the indicated type.
|
void |
run(InferenceInvocation i)
Runs this pass on all nodes of the indicated type.
|
void |
run(LearningClassifierExpression lce)
Runs this pass on all nodes of the indicated type.
|
printErrorsAndWarnings, reportError, reportWarning, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, run, runOnChildren, setRoot
public Clean(AST ast)
AST
.ast
- The program to run this pass on.public void run(AST ast)
protected void defaultFiles(CodeGenerator n)
*.java
and *.class
) to the remove list.n
- The node to add files with respect to.protected void anonymousFiles(Name name)
name
- The name of the classifier with which anonymous classes may be associated.public void run(ClassifierName cn)
public void run(CodedClassifier cc)
public void run(CompositeGenerator cg)
public void run(Conjunction c)
public void run(InferenceInvocation i)
public void run(LearningClassifierExpression lce)
public void run(ConstraintDeclaration c)
public void run(InferenceDeclaration i)
Copyright © 2016. All rights reserved.