public class RtfParserState extends Object
RtfParserState
contains the state information
for the parser. The current state object is pushed/popped in a stack
when a group change is made.
When an open group is encountered, the current state is copied and
then pushed on the top of the stack
When a close group is encountered, the current state is overwritten with
the popped value from the top of the stackModifier and Type | Field and Description |
---|---|
Object |
ctrlWordHandler
The current control word handler.
|
Stack |
ctrlWordHandlers
Stack containing control word handlers.
|
RtfDestination |
destination
The current destination.
|
Object |
groupHandler
The control word set as the group handler.
|
boolean |
isExtendedDestination
Flag indicating if this is an extended destination \* control word
|
boolean |
newGroup
Flag to indicate if last token was an open group token '{'
|
int |
parserState
The parser state.
|
RtfProperty |
properties |
StringBuffer |
text
The parsed value for the current group/control word.
|
int |
tokeniserState
The tokeniser state.
|
Constructor and Description |
---|
RtfParserState()
Default constructor
|
RtfParserState(RtfParserState orig)
Copy constructor
|
public int parserState
public int tokeniserState
public Object groupHandler
public StringBuffer text
public Stack ctrlWordHandlers
public Object ctrlWordHandler
public RtfDestination destination
public boolean isExtendedDestination
public boolean newGroup
public RtfProperty properties
public RtfParserState()
public RtfParserState(RtfParserState orig)
orig
- The object to copyCopyright © 2015. All rights reserved.