|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sintef.mofscript.parser.ParserUtil
public class ParserUtil
| Constructor Summary | |
|---|---|
ParserUtil()
Default constructor |
|
| Method Summary | |
|---|---|
static void |
addMOFScriptComment(MOFScriptComment comment)
Utility function for adding comments during parsing Used by the parser. |
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()
Gets the current column during parsing |
java.lang.String |
getInputFileLocation()
Retrieves the location of input files |
static MofScriptLexer |
getLexer()
GEts the lexer |
static int |
getLine()
Gets the current line during parsing |
static MofScriptModelChecker |
getModelChecker()
Gets the model checker |
static MOFScriptModelFactory |
getMofScriptModelFactory()
Retrives an instance of the MOFScript Model Factory |
static int |
getParserLineTracker()
Deprecated. |
static void |
incrementParserLineTracker()
Deprecated. Increments parser linef |
static java.io.File |
lookupFileMetaModel2(java.lang.String model)
Deprecated. |
protected MOFScriptSpecification |
parse(java.io.File f)
|
MOFScriptSpecification |
parse(java.io.File f,
boolean doPostCheck)
|
MOFScriptSpecification |
parse(java.lang.String str,
boolean doPostCheck,
java.lang.String uri)
Parses the MOFScript specification 'str' |
MOFScriptSpecification |
parse(java.lang.String str,
java.lang.String uri)
Parses the MOFScript specification 'str' |
java.util.List |
readModelDecls(java.lang.String str)
|
static void |
resetParserLineTracker()
Deprecated. Resets line tracker information |
void |
setCompilePath(java.lang.String path)
The compilePath is given as a sequence of directory reference, separated by ';' |
void |
setInputFileLocation(java.lang.String location)
Defines the location of input files |
void |
setMetaModelRepositoryURI(java.lang.String uri)
Defines the metamodel repository uri location |
static void |
setParseInfo(MOFScriptObject parseobj)
Utiliy function for setting line and comment information on parsed objects. |
static void |
setParserLine(int line)
Deprecated. |
| 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)
uri - public void setInputFileLocation(java.lang.String location)
location - public java.lang.String getInputFileLocation()
public static MOFScriptModelFactory getMofScriptModelFactory()
public void setCompilePath(java.lang.String path)
path -
protected MOFScriptSpecification doParse(java.io.Reader in,
boolean primary,
boolean doPostCheck,
java.lang.String uri)
in - The input for parsingprimary - Specifies if the given input is 'the primary transformation' rather than an imported onepostCheck - Specifies that the input should be postChecked (function usage etc)uri - The URI of the input (i.e. the file URI).
public MOFScriptSpecification parse(java.lang.String str,
java.lang.String uri)
str - uri - The URI of the input
protected MOFScriptSpecification parse(java.io.File f)
f - The input file to parse
public MOFScriptSpecification parse(java.lang.String str,
boolean doPostCheck,
java.lang.String uri)
str - doPostCheck - Specifies whether a post checking should be done. Should always be true called from an external party.uri - The URI of the input
public MOFScriptSpecification parse(java.io.File f,
boolean doPostCheck)
f - The input file to parsedoPostCheck - Specifies if postchecking should be done or not.
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 lookupFileMetaModel2(java.lang.String model)
model -
public static void setParseInfo(MOFScriptObject parseobj)
parseobj - public static void addMOFScriptComment(MOFScriptComment comment)
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)
line - public static int getParserLineTracker()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||