org.beanio.internal.parser
Class Component
java.lang.Object
org.beanio.internal.util.TreeNode<Component>
org.beanio.internal.parser.Component
- All Implemented Interfaces:
- Cloneable, Iterable<Component>, Replicateable
- Direct Known Subclasses:
- Constant, ParserComponent, PropertyComponent
public abstract class Component
- extends TreeNode<Component>
The base class for all nodes in the parser tree.
- Since:
- 2.0
- Author:
- Kevin Seim
Constructor Summary |
Component()
Constructs a new Component. |
Component(int size)
Constructs a new Component. |
Methods inherited from class org.beanio.internal.util.TreeNode |
add, clone, find, getChildren, getFirst, getName, isSupportedChild, iterator, print, setName, size, sort, toParamString, toString, updateReferences |
Component
public Component()
- Constructs a new Component.
Component
public Component(int size)
- Constructs a new Component.
- Parameters:
size
- the initial child capacity
registerLocals
public void registerLocals(Set<ParserLocal<? extends Object>> locals)
- Called by a stream to register variables stored in the parsing context. This method
should be overridden by subclasses that need to register one or more parser context variables.
- Parameters:
locals
- set of local variables
Copyright © 2010-2013 Kevin Seim