public class ExpressionCache extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ExpressionCache.EvaluationResult
Returned by evaluate().
|
Constructor and Description |
---|
ExpressionCache(DebugCLI cli)
We can get at files by name or module id, eventually we will put functions in here too
|
Modifier and Type | Method and Description |
---|---|
int |
add(Object e) |
void |
appendVariable(StringBuilder sb,
Variable v,
int isolateId)
Formatting function for variable
|
static void |
appendVariableAttributes(StringBuilder sb,
Variable v) |
void |
appendVariableValue(StringBuilder sb,
Object o,
int isolateId)
Given any arbitrary constant value, such as a Double, a String, etc.,
format its value appropriately.
|
void |
appendVariableValue(StringBuilder sb,
Value val,
int isolateId) |
void |
appendVariableValue(StringBuilder sb,
Value val,
String variableName,
int isolateId) |
Object |
at(int i) |
void |
bind(Session s) |
void |
clear() |
static String |
escape(String str) |
ExpressionCache.EvaluationResult |
evaluate(ValueExp e,
int isolateId) |
Object |
get(String s)
We are able to fetch properties or expressions (i.e previous expression)
using this single call, despite the fact that each of these types of
results lie in different data structures m_expressions and m_props.
|
String |
getPackageName(int id) |
Session |
getSession() |
Set<String> |
keySet() |
ValueExp |
parse(String s) |
boolean |
propertyEnabled(String which) |
void |
put(String s,
int value) |
int |
size() |
void |
unbind() |
public ExpressionCache(DebugCLI cli)
public void clear()
public void unbind()
public int size()
public Object at(int i)
public Session getSession()
public String getPackageName(int id)
public void bind(Session s)
public ExpressionCache.EvaluationResult evaluate(ValueExp e, int isolateId) throws NumberFormatException, NoSuchVariableException, PlayerFaultException, PlayerDebugException
public ValueExp parse(String s) throws IOException, ParseException
IOException
ParseException
public int add(Object e)
public boolean propertyEnabled(String which)
public void put(String s, int value)
public Object get(String s) throws NumberFormatException, ArrayIndexOutOfBoundsException, NoSuchElementException
public void appendVariable(StringBuilder sb, Variable v, int isolateId)
public void appendVariableValue(StringBuilder sb, Object o, int isolateId)
sb
- a StringBuilder to which the formatted value will be appended.o
- the value to format.public void appendVariableValue(StringBuilder sb, Value val, int isolateId)
public void appendVariableValue(StringBuilder sb, Value val, String variableName, int isolateId)
public static void appendVariableAttributes(StringBuilder sb, Variable v)
Copyright © 2016 The Apache Software Foundation. All rights reserved.