Structured Text Toolkit

Uses of Class
com.saelist.stx.Pair

Packages that use Pair
com.saelist.command A set utilites that use the Structured Text Tolkit. 
com.saelist.stx   
com.saelist.stx.operators   
com.saelist.stx.parser Parsers for indented and free-form structured text. 
 

Uses of Pair in com.saelist.command
 

Fields in com.saelist.command declared as Pair
protected  Pair AbstractCommand.config
           
 

Uses of Pair in com.saelist.stx
 

Fields in com.saelist.stx declared as Pair
protected  Pair Pair.parent
           
 

Methods in com.saelist.stx that return Pair
 Pair PairList.getPair(int index)
           
 Pair PairList.get(int index)
           
 Pair Pair.getRoot()
           
 Pair Pair.getParent()
           
 Pair Pair.get(java.lang.String text)
           
 Pair Pair.get(int index)
           
 Pair Pair.select1(java.lang.String xpath)
          Returns the 1st pair matching the xpath or null if none matches.
 Pair Pair.copy()
           
 

Methods in com.saelist.stx with parameters of type Pair
 void PairList.addPair(Pair pair)
           
 void PairList.addPair(int index, Pair pair)
           
 void PairList.remove(Pair pair)
           
 boolean Validator.matches(Pair sn, Pair cn)
          Mathces a pattern pair to a candidate pair.
 void Pair.setParent(Pair parent)
           
 void Pair.add(int pos, Pair pair)
          Insert the pair at position pos in the list of sub-pairs.
 void Pair.add(Pair pair)
          Appends the pair to the list of sub-pairs.
 void Pair.remove(Pair pair)
          Removes the pair from the list of sub-pairs.
 void Operator.init(Pair config)
          Configures the operator before a round of visits.
 void Operator.operate(Pair pair)
          Operates on the pair.
 

Constructors in com.saelist.stx with parameters of type Pair
Pair(Pair parent, java.lang.String text)
           
Pair(Pair parent, int indent, java.lang.String line, int srcLine, int srcColumn)
           
 

Uses of Pair in com.saelist.stx.operators
 

Fields in com.saelist.stx.operators declared as Pair
protected  Pair AbstractOperator.config
           
 

Methods in com.saelist.stx.operators with parameters of type Pair
 void AbstractOperator.init(Pair config)
          Validates the configuration against the schema and stores it in config, then calls init() to allow descendants to further initialize themselves.
abstract  void AbstractOperator.operate(Pair pair)
          Descendant classes will put the code for the actual operation here.
 void ReplaceOperator.operate(Pair pair)
          Performs the replacement operation on the given pair.
 void SelectOperator.operate(Pair pair)
          Performs the select operation on the given pair.
 void SplitOperator.operate(Pair pair)
          Performs the split operation on the given pair.
 void YankOperator.operate(Pair pair)
          Replaces the text of pairs that match pattern with the concatenated text of its descendands and removes the descendants.
 java.lang.String YankOperator.subText(Pair pair, java.lang.String indent)
          Recursively accumulates the text of the descendants of pair while removing them from their parents.
 

Uses of Pair in com.saelist.stx.parser
 

Methods in com.saelist.stx.parser that return Pair
static Pair LstxParser.parse(java.lang.String text)
          Parses text into a structure of @link{com.saelist.stx.Pair}s based on the indentation of the text.
static Pair LstxParser.parse(java.io.File file)
          Parses the text from file into a structure of @link{com.saelist.stx.Pair}s based on the indentation of the text.
static Pair LstxParser.parse(java.io.Reader in)
          Parses the text from in into a structure of @link{com.saelist.stx.Pair}s based on the indentation of the text.
static Pair StxParser.parse(java.lang.String text)
           
static Pair StxParser.parsePair(Pair parent, java.util.List tokens, int pos)
          A pair that remembers its location in the source file.
 

Methods in com.saelist.stx.parser with parameters of type Pair
static void LstxParser.unParse(java.io.Writer out, Pair pair)
          Writer the pair to out.
static void LstxParser.unParse(java.io.Writer out, Pair pair, boolean join)
          Writes the pair to out, joining single children on the parents' line after a "=".
static void LstxParser.applyBasicProfile(Pair pair)
          Split on '=' and remove comments.
static Pair StxParser.parsePair(Pair parent, java.util.List tokens, int pos)
          A pair that remembers its location in the source file.
 


Structured Text Toolkit