net.sf.saffron.oj.util
Class OJUtil
java.lang.Object
|
+--net.sf.saffron.oj.util.OJUtil
- public abstract class OJUtil
- extends Object
Static utilities for manipulating OpenJava expressions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
threadDeclarers
public static final ThreadLocal threadDeclarers
- Each thread's enclosing
OJClass
. Synthetic classes are declared
as inner classes of this.
OJUtil
public OJUtil()
ojClassForExpression
public static OJClass ojClassForExpression(SaffronRel rel,
Expression exp)
ojToType
public static SaffronType ojToType(SaffronTypeFactory typeFactory,
OJClass ojClass)
toTypeName
public static TypeName toTypeName(SaffronType rowType)
- Converts a
SaffronType
to a TypeName
.
- Pre-condition:
- threadDeclarers.get() != null
typeToOJClass
public static OJClass typeToOJClass(OJClass declarer,
SaffronType rowType)
typeToOJClass
public static OJClass typeToOJClass(SaffronType rowType)
- Converts a
SaffronType
to a OJClass
.
- Pre-condition:
- threadDeclarers.get() != null
literalValue
public static Object literalValue(Literal literal)