public class ASBlockWalker extends Object implements IASBlockVisitor, IASBlockWalker
IASBlockVisitor
that will walk the
ICompilationUnit
s AST IASNode
hierarchy.Constructor and Description |
---|
ASBlockWalker(List<ICompilerProblem> errors,
IASProject project,
IASEmitter emitter) |
public ASBlockWalker(List<ICompilerProblem> errors, IASProject project, IASEmitter emitter)
public IASEmitter getEmitter()
IASBlockWalker
getEmitter
in interface IASBlockWalker
public List<ICompilerProblem> getErrors()
IASBlockWalker
getErrors
in interface IASBlockWalker
public IASNodeStrategy getStrategy()
public void setStrategy(IASNodeStrategy value)
public IASProject getProject()
IBlockWalker
ICompilerProject
for the traverse state.getProject
in interface IBlockWalker
public void walk(IASNode node)
IBlockWalker
IASNode
based on the semantics of the known node.
Typically uses the IASNodeStrategy.handle(IASNode)
to delegate
how the node will be traversed.
walk
in interface IBlockWalker
node
- The IASNode
to traverse using the current strategypublic void visitCompilationUnit(ICompilationUnit unit)
visitCompilationUnit
in interface IASBlockVisitor
public void visitFile(IFileNode node)
visitFile
in interface IASBlockVisitor
public void visitPackage(IPackageNode node)
visitPackage
in interface IASBlockVisitor
public void visitClass(IClassNode node)
visitClass
in interface IASBlockVisitor
public void visitInterface(IInterfaceNode node)
visitInterface
in interface IASBlockVisitor
public void visitVariable(IVariableNode node)
visitVariable
in interface IASBlockVisitor
public void visitFunction(IFunctionNode node)
visitFunction
in interface IASBlockVisitor
public void visitParameter(IParameterNode node)
visitParameter
in interface IASBlockVisitor
public void visitGetter(IGetterNode node)
visitGetter
in interface IASBlockVisitor
public void visitSetter(ISetterNode node)
visitSetter
in interface IASBlockVisitor
public void visitNamespace(INamespaceNode node)
visitNamespace
in interface IASBlockVisitor
public void visitFunctionCall(IFunctionCallNode node)
visitFunctionCall
in interface IASBlockVisitor
public void visitBlock(IBlockNode node)
visitBlock
in interface IASBlockVisitor
public void visitIf(IIfNode node)
visitIf
in interface IASBlockVisitor
public void visitForLoop(IForLoopNode node)
visitForLoop
in interface IASBlockVisitor
protected void visitForEach(IForLoopNode node)
protected void visitFor(IForLoopNode node)
public void visitSwitch(ISwitchNode node)
visitSwitch
in interface IASBlockVisitor
public void visitWhileLoop(IWhileLoopNode node)
visitWhileLoop
in interface IASBlockVisitor
public void visitWith(IWithNode node)
visitWith
in interface IASBlockVisitor
public void visitThrow(IThrowNode node)
visitThrow
in interface IASBlockVisitor
public void visitTry(ITryNode node)
visitTry
in interface IASBlockVisitor
public void visitCatch(ICatchNode node)
visitCatch
in interface IASBlockVisitor
public void visitIterationFlow(IIterationFlowNode node)
visitIterationFlow
in interface IASBlockVisitor
public void visitIdentifier(IIdentifierNode node)
visitIdentifier
in interface IASBlockVisitor
public void visitNumericLiteral(INumericLiteralNode node)
visitNumericLiteral
in interface IASBlockVisitor
public void visitDefaultXMLNamespace(IDefaultXMLNamespaceNode node)
visitDefaultXMLNamespace
in interface IASBlockVisitor
public void visitKeyword(IKeywordNode node)
visitKeyword
in interface IASBlockVisitor
public void visitLiteral(ILiteralNode node)
visitLiteral
in interface IASBlockVisitor
public void visitMemberAccessExpression(IMemberAccessExpressionNode node)
visitMemberAccessExpression
in interface IASBlockVisitor
public void visitNamespaceAccessExpression(INamespaceAccessExpressionNode node)
visitNamespaceAccessExpression
in interface IASBlockVisitor
public void visitDynamicAccess(IDynamicAccessNode node)
visitDynamicAccess
in interface IASBlockVisitor
public void visitTypedExpression(ITypedExpressionNode node)
visitTypedExpression
in interface IASBlockVisitor
public void visitAsOperator(IBinaryOperatorNode node)
visitAsOperator
in interface IASBlockVisitor
public void visitIsOperator(IBinaryOperatorNode node)
visitIsOperator
in interface IASBlockVisitor
public void visitBinaryOperator(IBinaryOperatorNode node)
visitBinaryOperator
in interface IASBlockVisitor
public void visitUnaryOperator(IUnaryOperatorNode node)
visitUnaryOperator
in interface IASBlockVisitor
public void visitTerminal(ITerminalNode node)
visitTerminal
in interface IASBlockVisitor
public void visitFunctionObject(IFunctionObjectNode node)
visitFunctionObject
in interface IASBlockVisitor
public void visitVariableExpression(IVariableExpressionNode node)
visitVariableExpression
in interface IASBlockVisitor
public void visitExpression(IExpressionNode node)
visitExpression
in interface IASBlockVisitor
public void visitImport(IImportNode node)
visitImport
in interface IASBlockVisitor
public void visitMetaTags(IMetaTagsNode node)
visitMetaTags
in interface IASBlockVisitor
public void visitMetaTag(IMetaTagNode node)
visitMetaTag
in interface IASBlockVisitor
public void visitUseNamespace(IUseNamespaceNode node)
visitUseNamespace
in interface IASBlockVisitor
public void visitEmbed(IEmbedNode node)
visitEmbed
in interface IASBlockVisitor
public void visitContainer(IContainerNode node)
visitContainer
in interface IASBlockVisitor
public void visitE4XFilter(IMemberAccessExpressionNode node)
visitE4XFilter
in interface IASBlockVisitor
public void visitReturn(IReturnNode node)
visitReturn
in interface IASBlockVisitor
public void visitTernaryOperator(ITernaryOperatorNode node)
visitTernaryOperator
in interface IASBlockVisitor
public void visitLabeledStatement(LabeledStatementNode node)
visitLabeledStatement
in interface IASBlockVisitor
public void visitObjectLiteralValuePair(IObjectLiteralValuePairNode node)
visitObjectLiteralValuePair
in interface IASBlockVisitor
public void visitLanguageIdentifierNode(ILanguageIdentifierNode node)
visitLanguageIdentifierNode
in interface IASBlockVisitor
protected void debug(String message)
Copyright © 2016 The Apache Software Foundation. All rights reserved.