org.sintef.mofscript.parser
Class ParserUtil
java.lang.Object
org.sintef.mofscript.parser.ParserUtil
public class ParserUtil
- extends java.lang.Object
- Author:
- jol
ParserUtil
Created Jul 26, 2004
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserUtil
public ParserUtil()
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()