org.sintef.mofscript.parser
Class ParserUtil

java.lang.Object
  extended by org.sintef.mofscript.parser.ParserUtil

public class ParserUtil
extends java.lang.Object

Author:
jol ParserUtil Created Jul 26, 2004

Constructor Summary
ParserUtil()
           
 
Method Summary
static void addMOFScriptComment(MOFScriptComment comment)
           
protected  MOFScriptSpecification doParse(java.io.Reader in, boolean primary, boolean doPostCheck, java.lang.String uri)
          Performs the parsing of a transformation and included transformations
static int getColumn()
           
static MofScriptLexer getLexer()
           
static int getLine()
           
static MofScriptModelChecker getModelChecker()
           
static MOFScriptModelFactory getMofScriptModelFactory()
           
static int getParserLineTracker()
           
static void incrementParserLineTracker()
           
static java.io.File lookupFileMetaModel2(java.lang.String model)
           
 MOFScriptSpecification parse(java.io.File f, boolean doPostCheck)
           
 MOFScriptSpecification parse(java.lang.String str, boolean doPostCheck, java.lang.String uri)
           
 java.util.List readModelDecls(java.lang.String str)
           
static void resetParserLineTracker()
           
 void setCompilePath(java.lang.String path)
          The compilePath is given as a sequence of directory reference, separated by ';'
 void setInputFileLocation(java.lang.String location)
           
 void setMetaModelRepositoryURI(java.lang.String uri)
           
static void setParseInfo(MOFScriptObject parseobj)
           
static void setParserLine(int line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserUtil

public ParserUtil()
Method Detail

setMetaModelRepositoryURI

public void setMetaModelRepositoryURI(java.lang.String uri)

setInputFileLocation

public void setInputFileLocation(java.lang.String location)

getMofScriptModelFactory

public static MOFScriptModelFactory getMofScriptModelFactory()

setCompilePath

public void setCompilePath(java.lang.String path)
The compilePath is given as a sequence of directory reference, separated by ';'

Parameters:
path -

doParse

protected MOFScriptSpecification doParse(java.io.Reader in,
                                         boolean primary,
                                         boolean doPostCheck,
                                         java.lang.String uri)
Performs the parsing of a transformation and included transformations

Parameters:
in -
primary -
Returns:

parse

public MOFScriptSpecification parse(java.lang.String str,
                                    boolean doPostCheck,
                                    java.lang.String uri)

parse

public MOFScriptSpecification parse(java.io.File f,
                                    boolean doPostCheck)

readModelDecls

public java.util.List readModelDecls(java.lang.String str)
Parameters:
str - the input part for the parser
Returns:
a list of the parameters to the transformation

getModelChecker

public static MofScriptModelChecker getModelChecker()

lookupFileMetaModel2

public static java.io.File lookupFileMetaModel2(java.lang.String model)

setParseInfo

public static void setParseInfo(MOFScriptObject parseobj)

addMOFScriptComment

public static void addMOFScriptComment(MOFScriptComment comment)

getLexer

public static MofScriptLexer getLexer()

getLine

public static int getLine()

getColumn

public static int getColumn()

resetParserLineTracker

public static void resetParserLineTracker()

incrementParserLineTracker

public static void incrementParserLineTracker()

setParserLine

public static void setParserLine(int line)

getParserLineTracker

public static int getParserLineTracker()