BeanIO 2.0.4

org.beanio.internal.parser
Class Component

java.lang.Object
  extended by org.beanio.internal.util.TreeNode<Component>
      extended by 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.
 
Method Summary
 void registerLocals(Set<ParserLocal<? extends Object>> locals)
          Called by a stream to register variables stored in the parsing context.
 
Methods inherited from class org.beanio.internal.util.TreeNode
add, clone, find, getChildren, getFirst, getName, isSupportedChild, iterator, print, setName, size, sort, toParamString, toString, updateReferences
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Component

public Component()
Constructs a new Component.


Component

public Component(int size)
Constructs a new Component.

Parameters:
size - the initial child capacity
Method Detail

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

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim