net.obsearch.example.ted
Class SliceFactory

java.lang.Object
  extended by net.obsearch.example.ted.SliceFactory

public class SliceFactory
extends java.lang.Object

SliceFactory Creates SliceAST objects and SliceForest objects from strings.

Author:
Arnoldo Jose Muller Molina

Constructor Summary
SliceFactory()
           
 
Method Summary
static SliceForest createEmptySliceForest()
           
static SliceASTIds createSliceAST(java.lang.String x)
          Creates a tree from a slice string definition
static SliceASTForStandardTed createSliceASTForStandardTed(java.lang.String x)
           
static SliceAST createSliceASTLean(java.lang.String x)
          creates the base clase of the ast.
static SliceForest createSliceForest(java.lang.String x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SliceFactory

public SliceFactory()
Method Detail

createSliceAST

public static SliceASTIds createSliceAST(java.lang.String x)
                                  throws antlr.RecognitionException,
                                         antlr.TokenStreamException
Creates a tree from a slice string definition

Parameters:
x -
Returns:
Throws:
antlr.RecognitionException
antlr.TokenStreamException

createSliceASTLean

public static SliceAST createSliceASTLean(java.lang.String x)
                                   throws antlr.RecognitionException,
                                          antlr.TokenStreamException
creates the base clase of the ast. it is lighter

Parameters:
x -
Returns:
Throws:
antlr.RecognitionException
antlr.TokenStreamException

createSliceForest

public static SliceForest createSliceForest(java.lang.String x)
                                     throws antlr.RecognitionException,
                                            antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

createSliceASTForStandardTed

public static SliceASTForStandardTed createSliceASTForStandardTed(java.lang.String x)
                                                           throws antlr.RecognitionException,
                                                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

createEmptySliceForest

public static SliceForest createEmptySliceForest()


Copyright © 2007-2008 Arnoldo Jose Muller Molina. All Rights Reserved.