Modifier | Constructor and Description |
---|---|
protected |
ObjectFactory() |
Modifier and Type | Method and Description |
---|---|
BooleanLiteral |
createBoolean(String value) |
FloatLiteral |
createFloat(String value) |
IntegerLiteral |
createInteger(String value) |
List |
createList(String name) |
Location |
createLocation(String value1,
String value2) |
PetalObject |
createObject(PetalNode parent,
String id,
ArrayList params,
String tag)
Create PetalObject like (object Class "Professor" ...).
|
StringLiteral |
createString(String value,
boolean multi)
There are two kinds of string encodings in Rose: Either the usual "foo bar", or
a multi line string where each line starts with a |.
|
Tag |
createTag(String ref) |
Tuple |
createTuple(String first,
String second) |
Value |
createValue(String name,
StringLiteral value) |
static ObjectFactory |
getInstance() |
static void |
setInstance(ObjectFactory o) |
public static ObjectFactory getInstance()
public static void setInstance(ObjectFactory o)
public PetalObject createObject(PetalNode parent, String id, ArrayList params, String tag)
parent
- the parent of the object in the tree, either another PetalObject or the
root node (PetalFile)id
- the Rose identifier for the node like "Class_Category" which is mapped
to a name like "ClassCategory"params
- the parameter list for the objecttag
- some objects have a "tag", like @12public List createList(String name)
public Value createValue(String name, StringLiteral value)
public Tuple createTuple(String first, String second)
public Location createLocation(String value1, String value2)
public StringLiteral createString(String value, boolean multi)
public BooleanLiteral createBoolean(String value)
public IntegerLiteral createInteger(String value)
public FloatLiteral createFloat(String value)
Copyright © 2018 BITPlan GmbH. All rights reserved.