public abstract class ParserComponent extends Component implements Parser
Parser.
The method isSupportedChild(Component) is overridden to restrict
children to components that also implement Parser.
Parser| Constructor and Description |
|---|
ParserComponent()
Constructs a new ParserComponent.
|
ParserComponent(int size)
Constructs a new ParserComponent.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isSupportedChild(Component child)
Returns whether a node is a supported child of this node.
|
registerLocalsadd, clone, find, getChildren, getFirst, getName, isDescendant, iterator, print, print, setName, size, sort, toParamString, toString, updateReferencesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearValue, getName, getSize, getValue, hasContent, isIdentifier, isOptional, marshal, matches, setValue, unmarshalforEach, spliteratorpublic ParserComponent()
public ParserComponent(int size)
size - the initial child capacityprotected boolean isSupportedChild(Component child)
TreeNodeTreeNode.add(TreeNode).isSupportedChild in class TreeNode<Component>child - the node to test