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.
|
registerLocals
add, clone, find, getChildren, getFirst, getName, isDescendant, iterator, print, print, setName, size, sort, toParamString, toString, updateReferences
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clearValue, getName, getSize, getValue, hasContent, isIdentifier, isOptional, marshal, matches, setValue, unmarshal
forEach, spliterator
public ParserComponent()
public ParserComponent(int size)
size
- the initial child capacityprotected boolean isSupportedChild(Component child)
TreeNode
TreeNode.add(TreeNode)
.isSupportedChild
in class TreeNode<Component>
child
- the node to test