| java.lang.Object org.openlaszlo.iv.flash.context.Context
All known Subclasses: org.openlaszlo.iv.flash.context.GraphContext, org.openlaszlo.iv.flash.context.FakeContext, org.openlaszlo.iv.flash.context.StandardContext,
Context | abstract public class Context (Code) | | Abstract generator context
Contains variables with theirs values and reference to parent context
author: Dmitry Skavish author: James Taylor |
apply | public String apply(String s)(Code) | | Applies this context to the specified string
In the specified string replaces all constructions like: {variable_name}
with corresponding variable's value or empty string if variable not found
{{ treated as a single brace
Parameters: s - string to replace in string with all variables replaced by their values |
getCommandContext | public CommandContext getCommandContext()(Code) | | Traverse the tree of context and find the root - CommandContext
found CommandContext or null |
getParent | public Context getParent()(Code) | | Returns parent context
parent context |
getValue | abstract public String getValue(String name)(Code) | | Retrieves value by name
Parameters: name - expression to evaluate in this context value of variable or null |
getValueFromParent | protected String getValueFromParent(String expr)(Code) | | Queries the parent context for the value
Parameters: expr - expression to evaluate in parent context the value of evaluating the expression in the parent context,or null if there is no parent context. |
setParent | public void setParent(Context parent)(Code) | | Sets parent context
Parameters: parent - parent context |
|
|