public abstract class ScriptContainer extends Object
This class provides access to the evaluation context through the field context
. The evaluation context provides services that helps to
build model transformators/generators.
This class also provides asList
methods to call from Java code scripts which expects arguments :
self.toString("myScript", asList(aStringValue));
This class is not intended to be subclasses by clients.
Modifier and Type | Field and Description |
---|---|
static EvaluationContext |
context
Return the current evaluation context.
|
Constructor and Description |
---|
ScriptContainer() |
Modifier and Type | Method and Description |
---|---|
static List<Object> |
asList(Object o1)
Creates a new list with the specified argument.
|
static List<Object> |
asList(Object o1,
Object o2)
Creates a new list with the specified arguments.
|
static List<Object> |
asList(Object o1,
Object o2,
Object o3)
Creates a new list with the specified arguments.
|
static List<Object> |
asList(Object o1,
Object o2,
Object o3,
Object o4)
Creates a new list with the specified arguments.
|
static List<Object> |
asList(Object o1,
Object o2,
Object o3,
Object o4,
Object o5)
Creates a new list with the specified arguments.
|
static List<Object> |
asList(Object o1,
Object o2,
Object o3,
Object o4,
Object o5,
Object o6)
Creates a new list with the specified arguments.
|
public static EvaluationContext context
public static List<Object> asList(Object o1)
self.toString("myScript", asList(aStringValue));
o1
- an object to add in the list.public static List<Object> asList(Object o1, Object o2)
self.toString("myScript", asList(aStringValue, aBooleanValue));
o1
- an object to add in the list.o2
- an object to add in the list.public static List<Object> asList(Object o1, Object o2, Object o3)
self.toString("myScript", asList(aStringValue, aBooleanValue));
o1
- an object to add in the list.o2
- an object to add in the list.o3
- an object to add in the list.public static List<Object> asList(Object o1, Object o2, Object o3, Object o4)
self.toString("myScript", asList(aStringValue, aBooleanValue));
o1
- an object to add in the list.o2
- an object to add in the list.o3
- an object to add in the list.o4
- an object to add in the list.public static List<Object> asList(Object o1, Object o2, Object o3, Object o4, Object o5)
self.toString("myScript", asList(aStringValue, aBooleanValue));
o1
- an object to add in the list.o2
- an object to add in the list.o3
- an object to add in the list.o4
- an object to add in the list.o5
- an object to add in the list.public static List<Object> asList(Object o1, Object o2, Object o3, Object o4, Object o5, Object o6)
self.toString("myScript", asList(aStringValue, aBooleanValue));
o1
- an object to add in the list.o2
- an object to add in the list.o3
- an object to add in the list.o4
- an object to add in the list.o5
- an object to add in the list.o6
- an object to add in the list.