| Constructor and Description |
|---|
ExpressionContext(ExpressionCache cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
assign(Object o,
Value v)
Assign the object o, the value v.
|
Context |
createContext(Object o)
Creates a new context object by combining the current one and o.
|
void |
createPseudoVariables(boolean oui)
Enables/disables the creation of variables during lookup calls.
|
int |
getIsolateId()
The worker id to which this context object belongs.
|
String |
getName() |
Session |
getSession()
Returns the session associated with this context, or null.
|
Object |
lookup(Object o)
The Context interface which goes out and gets values from the session
Expressions use this interface as a means of evaluation.
|
Object |
lookupMembers(Object o)
Looks for the members of an object.
|
void |
setIsolateId(int id) |
Value |
toValue()
Converts the context to a Value.
|
Value |
toValue(Object o)
Converts the object to a Value.
|
public ExpressionContext(ExpressionCache cache)
public void setIsolateId(int id)
public String getName()
public void createPseudoVariables(boolean oui)
ContextcreatePseudoVariables in interface Contextpublic Context createContext(Object o)
ContextcreateContext in interface Contexto - any object which may have been returned by this class's lookup() functionpublic void assign(Object o, Value v) throws NoSuchVariableException, PlayerFaultException
Contextassign in interface Contexto - a variable to assign to -- this should be some value returned
by an earlier call to lookup().v - a value, such as a Boolean, Long, String, etc.NoSuchVariableExceptionPlayerFaultExceptionpublic Object lookup(Object o) throws NoSuchVariableException, PlayerFaultException
lookup in interface Contexto - the object to look up; most commonly a string representing the name of
a member variable.NoSuchVariableExceptionPlayerFaultExceptionpublic Object lookupMembers(Object o) throws NoSuchVariableException
ContextlookupMembers in interface Contexto - A variable whose members we want to look upNoSuchVariableExceptionContext.lookup(Object)public Value toValue(Object o)
ContexttoValue in interface Contexto - Either object that was returned by an earlier call to
lookup(), or one of the raw types that can be
returned by Value.getValueAsObject().null.Value.getValueAsObject()public Value toValue()
ContexttoValue(Object o), except that the object being converted
is the object that was used to initialize this context.public Session getSession()
ContextgetSession in interface Contextpublic int getIsolateId()
ContextgetIsolateId in interface ContextCopyright © 2016 The Apache Software Foundation. All rights reserved.