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)
|
| Modifier and Type | Method and Description |
|---|---|
void |
handle(IASNode node)
The strategy will handle the specific
IASNode. |
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 © 2023 The Apache Software Foundation. All rights reserved.