java.lang.Objectorg.sintef.mofscript.parser.ParserUtil
public class ParserUtil
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 ExecutionManager |
getExecutionManager()
|
static MofScriptLexer |
getLexer()
|
static int |
getLine()
|
static MofScriptModelChecker |
getModelChecker()
|
static MOFScriptModelFactory |
getMofScriptModelFactory()
|
static int |
getParserLineTracker()
|
static void |
incrementParserLineTracker()
|
static java.io.File |
lookupFileMetaModel(java.lang.String model)
|
java.lang.String[] |
lookupMetaModels()
Looks for all metamodel files, i.e. all Ecore files (with an ecore extension) |
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 |
---|
public ParserUtil()
Method Detail |
---|
public void setMetaModelRepositoryURI(java.lang.String uri)
public void setInputFileLocation(java.lang.String location)
public static MOFScriptModelFactory getMofScriptModelFactory()
public static ExecutionManager getExecutionManager()
public void setCompilePath(java.lang.String path)
path
- protected MOFScriptSpecification doParse(java.io.Reader in, boolean primary, boolean doPostCheck, java.lang.String uri)
in
- primary
-
public MOFScriptSpecification parse(java.lang.String str, boolean doPostCheck, java.lang.String uri)
public MOFScriptSpecification parse(java.io.File f, boolean doPostCheck)
public java.util.List readModelDecls(java.lang.String str)
str
- the input part for the parser
public static MofScriptModelChecker getModelChecker()
public static java.io.File lookupFileMetaModel(java.lang.String model)
public java.lang.String[] lookupMetaModels()
public static void setParseInfo(MOFScriptObject parseobj)
public static void addMOFScriptComment(MOFScriptComment comment)
public static MofScriptLexer getLexer()
public static int getLine()
public static int getColumn()
public static void resetParserLineTracker()
public static void incrementParserLineTracker()
public static void setParserLine(int line)
public static int getParserLineTracker()