LPEX
4.4.0

com.ibm.lpex.cobol
Class CobolParser.ParseElement

java.lang.Object
  extended by com.ibm.lpex.cobol.CobolParser.ParseElement
Enclosing class:
CobolParser

public class CobolParser.ParseElement
extends Object

A ParseElement contains cached information about a document element.


Field Summary
 long _classes
          The cached element classes.
 boolean _continuationLine
          Indicates that the cached element is a continuation line.
 int _element
          The cached element number.
 CobolParser.ParseElement _next
          The next cached element.
 StringBuffer _style
          The cached element style.
 String _text
          The cached element text.
 
Constructor Summary
CobolParser.ParseElement()
          Construct an instance of ParseElement.
 
Method Summary
 boolean active()
          Determines whether the cached parse element is still being used in parsing.
 void flush()
          Decache the cached element.
 void init(int element)
          Cache the specified element in this ParseElement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_element

public int _element
The cached element number.


_text

public String _text
The cached element text.


_classes

public long _classes
The cached element classes.


_continuationLine

public boolean _continuationLine
Indicates that the cached element is a continuation line.


_style

public StringBuffer _style
The cached element style.


_next

public CobolParser.ParseElement _next
The next cached element.

Constructor Detail

CobolParser.ParseElement

public CobolParser.ParseElement()
Construct an instance of ParseElement. The instance is added to the list of free ParseElements (_freeParseElements).

Method Detail

init

public void init(int element)
Cache the specified element in this ParseElement. This ParseElement is taken off the available list (_freeParseElements), and added to the in-use list (_parseElements).


flush

public void flush()
Decache the cached element. The style and classes are set in the editor.


active

public boolean active()
Determines whether the cached parse element is still being used in parsing.


LPEX
4.4.0

Copyright � 2016 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.