|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkoala.dynamicjava.interpreter.NodeProperties
public class NodeProperties
This class provides concrete methods to facilitate attaching and reading auxiliary properties associated with AST nodes. To encourage safety, the properties defined here should be manipulated exclusively through this interface (a better design would require working through the interface...)
| Field Summary | |
|---|---|
static String |
ASSERTED_TYPE
A Thunk |
static String |
CHECKED_TYPE
A Thunk |
static String |
CONSTRUCTOR
DJConstructor used by a constructor invocation |
static String |
CONVERTED_TYPE
A Thunk |
static String |
DJCLASS
DJClass declared by a class declaration or referenced by "this" |
static String |
ENCLOSING_THIS
This DJClass of "this" used implicitly as the enclosing object of an allocation. |
static String |
ERASED_TYPE
A Thunk |
static String |
ERROR
An ExecutionError that occurred at the given node. |
static String |
ERROR_CONTEXT
The new context that would have been the result had there not been an error. |
static String |
ERROR_STRINGS
The errorStrings property contains an array of additional messages (Strings) |
static String |
FIELD
DJField used by a field access or declared by a field declaration |
static String |
LEFT_EXPRESSION
An Expression representing the (possibly promoted) left side of an assignment or increment/decrement in which the value of the left expression is used to calculate the new value |
static String |
METHOD
Method used by a method invocation or declared by a method declaration |
static Lambda<Node,Type> |
NODE_TYPE
|
static Lambda<Node,VariableType> |
NODE_TYPE_VARIABLE
|
static Lambda<Node,LocalVariable> |
NODE_VARIABLE
|
static String |
OPERATION
A Lambda2 |
static String |
STATEMENT_TRANSLATION
A Node representing the translated equivalent of the tagged statement (or declaration) |
static String |
SUPER_TYPE
The Type extended by an AnonymousInnerAllocation (not necessary for AnonymousAllocations and TypeDeclarations, because the type is expressed in the syntax). |
static String |
TRANSLATION
An Expression representing the translated equivalent of the tagged Expression |
static String |
TYPE
The Type of an expression |
static String |
TYPE_VARIABLE
VariableType declared in a class or method signature |
static String |
VALUE
An Object value of a constant expression |
static String |
VARIABLE
A LocalVariable corresponding to the variable declared by the given node |
static String |
VARIABLE_TYPE
The Type of an expression when treated as a variable (an lvalue) |
| Constructor Summary | |
|---|---|
protected |
NodeProperties()
This class contains only static method and constants, so it is not useful to create instances of it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE
public static final Lambda<Node,Type> NODE_TYPE
public static final String VARIABLE_TYPE
public static final String SUPER_TYPE
public static final String CONVERTED_TYPE
public static final String ASSERTED_TYPE
public static final String CHECKED_TYPE
public static final String ERASED_TYPE
public static final String LEFT_EXPRESSION
public static final String TRANSLATION
public static final String STATEMENT_TRANSLATION
public static final String VALUE
public static final String ERROR_STRINGS
public static final String VARIABLE
public static final Lambda<Node,LocalVariable> NODE_VARIABLE
public static final String CONSTRUCTOR
public static final String FIELD
public static final String METHOD
public static final String DJCLASS
public static final String ENCLOSING_THIS
public static final String TYPE_VARIABLE
public static final Lambda<Node,VariableType> NODE_TYPE_VARIABLE
public static final String ERROR
public static final String ERROR_CONTEXT
public static final String OPERATION
| Constructor Detail |
|---|
protected NodeProperties()
| Method Detail |
|---|
public static Type getType(Node n)
public static Type setType(Node n,
Type t)
public static boolean hasType(Node n)
public static Type getVariableType(Node n)
public static Type setVariableType(Node n,
Type t)
public static boolean hasVariableType(Node n)
public static Type getSuperType(Node n)
public static Type setSuperType(Node n,
Type t)
public static boolean hasSuperType(Node n)
public static Thunk<Class<?>> getConvertedType(Node n)
public static Thunk<Class<?>> setConvertedType(Node n,
Thunk<Class<?>> c)
public static boolean hasConvertedType(Node n)
public static Thunk<Class<?>> getAssertedType(Node n)
public static Thunk<Class<?>> setAssertedType(Node n,
Thunk<Class<?>> c)
public static boolean hasAssertedType(Node n)
public static Thunk<Class<?>> getCheckedType(Node n)
public static Thunk<Class<?>> setCheckedType(Node n,
Thunk<Class<?>> c)
public static boolean hasCheckedType(Node n)
public static Thunk<Class<?>> getErasedType(Node n)
public static Thunk<Class<?>> setErasedType(Node n,
Thunk<Class<?>> c)
public static boolean hasErasedType(Node n)
public static Expression getLeftExpression(Node n)
public static Expression setLeftExpression(Node n,
Expression exp)
public static boolean hasLeftExpression(Node n)
public static Expression getTranslation(Node n)
public static Expression setTranslation(Node n,
Expression exp)
public static boolean hasTranslation(Node n)
public static Node getStatementTranslation(Node n)
public static Node setStatementTranslation(Node n,
Node s)
public static boolean hasStatementTranslation(Node n)
public static Object getValue(Node n)
public static Object setValue(Node n,
Object o)
public static boolean hasValue(Node n)
public static String[] getErrorStrings(Node n)
public static String[] setErrorStrings(Node n,
String... strings)
public static boolean hasErrorStrings(Node n)
public static LocalVariable getVariable(Node n)
public static LocalVariable setVariable(Node n,
LocalVariable v)
public static boolean hasVariable(Node n)
public static DJConstructor getConstructor(Node n)
public static DJConstructor setConstructor(Node n,
DJConstructor c)
public static boolean hasConstructor(Node n)
public static DJField getField(Node n)
public static DJField setField(Node n,
DJField f)
public static boolean hasField(Node n)
public static DJMethod getMethod(Node n)
public static DJMethod setMethod(Node n,
DJMethod m)
public static boolean hasMethod(Node n)
public static DJClass getDJClass(Node n)
public static DJClass setDJClass(Node n,
DJClass c)
public static boolean hasDJClass(Node n)
public static DJClass getEnclosingThis(Node n)
public static DJClass setEnclosingThis(Node n,
DJClass c)
public static boolean hasEnclosingThis(Node n)
public static VariableType getTypeVariable(Node n)
public static VariableType setTypeVariable(Node n,
VariableType v)
public static boolean hasTypeVariable(Node n)
public static ExecutionError getError(Node n)
public static ExecutionError setError(Node n,
ExecutionError e)
public static boolean hasError(Node n)
public static TypeContext getErrorContext(Node n)
public static TypeContext setErrorContext(Node n,
TypeContext c)
public static boolean hasErrorContext(Node n)
public static Lambda2<Object,Object,Object> getOperation(Node n)
public static Lambda2<Object,Object,Object> setOperation(Node n,
Lambda2<Object,Object,Object> f)
public static boolean hasOperation(Node n)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||