Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

com.ibm.lpex.core
Interface LpexParser

All Known Implementing Classes:
LpexCommonParser


public interface LpexParser

Interface LpexParser can be implemented to define a document parser.

A parser is associated with one particular view of a document. The parser must have a constructor whose parameter is this view:

   MyLpexParser(LpexView lpexView) {} 

See Also:
LpexCommonParser


Method Summary
 String getProperty(String key)
          Retrieve a parser property.
 void parse(int element)
          Incremental parse.
 void resetParser()
          Remove all of the parser specifics from the document view.
 void totalParse()
          Total parse.
 

Method Detail

 

 

resetParser

public void resetParser()

Remove all of the parser specifics from the document view. For example, remove any listeners you added, and dispose of any resources. Note that classes, style attributes, commands, and actions are already automatically removed by the editor.

See Also:
LpexCommonParser.resetParser()


 

 

totalParse

public void totalParse()

Total parse. Parse the entire document.

See Also:
LpexCommonParser.totalParse()


 

 

parse

public void parse(int element)

Incremental parse. Parse change(s) to a document.

Parameters:
element - the element whose committed change triggered the parse, or the element that precedes / follows a deleted block; the parser may identify other neighbouring elements that will have to be reparsed as a unit
See Also:
LpexCommonParser.parse(int)


 

 

getProperty

public String getProperty(String key)

Retrieve a parser property.

Parameters:
key - property name
See Also:
LpexCommonParser.getProperty(java.lang.String)


 

Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD