public class ClosureValue extends Object implements Value, ClosureHolder
Modifier | Constructor and Description |
---|---|
protected |
ClosureValue()
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
afterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent) |
void |
beforeUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent) |
Object |
execute(InterpreterConfiguration configuration,
InterpreterStackTrace stackTrace,
Object... arguments)
Executes this closure with given arguments.
|
Object |
execute(InterpreterConfiguration configuration,
Object... arguments)
Executes this closure with given arguments.
|
Object |
execute(InterpreterStackTrace stackTrace,
Object... arguments)
Executes this closure with given arguments.
|
Object |
execute(Object... arguments)
Executes this closure with given arguments.
|
ClosureOrigin |
getClosureOrigin() |
String |
getExpressionString()
Returns a string representation of this closure holder expression.
|
String |
getId()
Returns the id of this value, if any.
|
Namespace |
getNamespace()
Returns the namespace where the closure is declared.
|
ValueHolder |
getNotCompiledValueHolder() |
Value |
getParent()
Returns the parent of this value.
|
ClosureType |
getType()
Returns the type of the holder.
|
Object |
toObject()
Converts this value to an appropriate object.
|
String |
toString() |
public Object toObject()
Value
public Value getParent()
Value
public String getId()
Value
getId
in interface Value
getId
in interface ValueHolder
public ClosureType getType()
ValueHolder
getType
in interface ClosureHolder
getType
in interface ValueHolder
public Object execute(Object... arguments)
ClosureHolder
execute
in interface ClosureHolder
public Object execute(InterpreterConfiguration configuration, Object... arguments)
ClosureHolder
execute
in interface ClosureHolder
configuration
- configuration to apply while interpreting closurepublic Object execute(InterpreterStackTrace stackTrace, Object... arguments)
ClosureHolder
execute
in interface ClosureHolder
stackTrace
- a stack tracepublic Object execute(InterpreterConfiguration configuration, InterpreterStackTrace stackTrace, Object... arguments)
ClosureHolder
execute
in interface ClosureHolder
configuration
- configuration to apply while interpreting closurestackTrace
- a stack tracepublic String getExpressionString()
ClosureHolder
getExpressionString
in interface ClosureHolder
public Namespace getNamespace()
ClosureHolder
getNamespace
in interface ClosureHolder
public void beforeUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
public void afterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
public ValueHolder getNotCompiledValueHolder()
getNotCompiledValueHolder
in interface ValueHolder
public ClosureOrigin getClosureOrigin()
getClosureOrigin
in interface ClosureHolder
null
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.