|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.mjc.CUniverseRuntimeHelper
This is a helper class for the universe runtime checks. Its purpose is to store some information at a central place and therefore make it easier to maintain the transformations that are used to implement the runtime checks.
| Constructor Summary | |
private |
CUniverseRuntimeHelper()
|
| Method Summary | |
static JMethodCallExpression |
getCurrentContext()
|
static JExpression |
getCurrentUniverseOwner(CExpressionContextType context)
Get the owner of the current universe. |
static JNameExpression |
getHashTable()
|
static JNameExpression |
getNameExpression(String ident)
Creates a JNameExpression form a String. |
static JExpression |
getOwnerTest(CExpressionContextType context,
CType dest,
JExpression testObject,
JExpression expr)
Get the owner test that tests if testObject is compatible (can be casted to) the type described by dest. |
static JNameExpression |
getPolicy()
|
static JLocalVariable |
getTmpVariable(CExpressionContextType context,
JExpression currentNode,
CType type)
Get a reference to a temporary variable to store expressions that are used more than once, but should not be evaluated more than once of course. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private CUniverseRuntimeHelper()
| Method Detail |
public static JNameExpression getNameExpression(String ident)
ident - the String
public static JMethodCallExpression getCurrentContext()
public static JNameExpression getHashTable()
public static JNameExpression getPolicy()
public static JExpression getCurrentUniverseOwner(CExpressionContextType context)
context - the current context
public static JLocalVariable getTmpVariable(CExpressionContextType context,
JExpression currentNode,
CType type)
throws PositionedError
context - the current contextcurrentNode - the current node ("this" wherever you call it from)type - the type of the expression
PositionedError
public static JExpression getOwnerTest(CExpressionContextType context,
CType dest,
JExpression testObject,
JExpression expr)
context - the current contextdest - the destination type (what to test for)testObject - the location where the expression is found (ie
maybe a temporary variable)expr - the expression itself
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||