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()
Valuepublic Value getParent()
Valuepublic String getId()
ValuegetId in interface ValuegetId in interface ValueHolderpublic ClosureType getType()
ValueHoldergetType in interface ClosureHoldergetType in interface ValueHolderpublic Object execute(Object... arguments)
ClosureHolderexecute in interface ClosureHolderpublic Object execute(InterpreterConfiguration configuration, Object... arguments)
ClosureHolderexecute in interface ClosureHolderconfiguration - configuration to apply while interpreting closurepublic Object execute(InterpreterStackTrace stackTrace, Object... arguments)
ClosureHolderexecute in interface ClosureHolderstackTrace - a stack tracepublic Object execute(InterpreterConfiguration configuration, InterpreterStackTrace stackTrace, Object... arguments)
ClosureHolderexecute in interface ClosureHolderconfiguration - configuration to apply while interpreting closurestackTrace - a stack tracepublic String getExpressionString()
ClosureHoldergetExpressionString in interface ClosureHolderpublic Namespace getNamespace()
ClosureHoldergetNamespace in interface ClosureHolderpublic 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 ValueHolderpublic ClosureOrigin getClosureOrigin()
getClosureOrigin in interface ClosureHoldernullCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.