public class ASNodeSwitch extends Object implements IASNodeStrategy
ASNodeSwitch class is an IASNodeStrategy implementation
that handles IASNode types based on the node interface type.
All traversable ASTNodeID node visitor methods are found within the
class handle(IASNode) method's if else statements.
| Constructor and Description |
|---|
ASNodeSwitch(IBlockVisitor visitor)
|
public ASNodeSwitch(IBlockVisitor visitor)
visitor - The IASBlockVisitor strategy that will visit an
IASNode based on it's type.public void handle(IASNode node)
IASNodeStrategyIASNode.handle in interface IASNodeStrategynode - The IASNode to handle.Copyright © 2016 The Apache Software Foundation. All rights reserved.