public static class IlrSyntaxTree.NameTester extends java.lang.Object implements IlrSyntaxTree.NodeTester
IlrSyntaxTree.NodeTester. It tests if a node has a
particular name.| Constructor and Description |
|---|
IlrSyntaxTree.NameTester(java.lang.String name)
Constructs an instance of
NameTester. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptNode(IlrSyntaxTree.Node node)
Checks if the name of the node is the same as the one provided when the
NameTester object was created. |
public IlrSyntaxTree.NameTester(java.lang.String name)
NameTester.name - The name of the node to test for.public boolean acceptNode(IlrSyntaxTree.Node node)
NameTester object was created.acceptNode in interface IlrSyntaxTree.NodeTesternode - The node to test.true if the node has the name specified in the
constructor, false otherwise.© Copyright IBM Corp. 1987, 2017