public class CompileReflect
extends java.lang.Object
Constructor and Description |
---|
CompileReflect() |
Modifier and Type | Method and Description |
---|---|
static int |
checkKnownClass(Type type,
Compilation comp)
Check if class exists.
|
static ApplyExp |
inlineClassName(ApplyExp exp,
int carg,
InlineCalls walker)
Resolve class specifier to ClassType at inline time.
|
static Expression |
makeSetterCall(Expression receiver,
java.lang.Object slot,
Expression newValue) |
static Expression |
validateApplyInstanceOf(ApplyExp exp,
InlineCalls visitor,
Type required,
Procedure proc) |
static Expression |
validateApplySlotGet(ApplyExp exp,
InlineCalls visitor,
Type required,
Procedure proc) |
static Expression |
validateApplySlotSet(ApplyExp exp,
InlineCalls visitor,
Type required,
Procedure proc) |
static Expression |
validateApplyTypeSwitch(ApplyExp exp,
InlineCalls visitor,
Type required,
Procedure proc) |
static Expression |
validateThrow(ApplyExp exp,
InlineCalls visitor,
Type required,
Procedure proc) |
public static int checkKnownClass(Type type, Compilation comp)
public static ApplyExp inlineClassName(ApplyExp exp, int carg, InlineCalls walker)
public static Expression validateApplyInstanceOf(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc)
public static Expression validateApplySlotGet(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc)
public static Expression validateApplySlotSet(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc)
public static Expression validateApplyTypeSwitch(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc)
public static Expression makeSetterCall(Expression receiver, java.lang.Object slot, Expression newValue)
public static Expression validateThrow(ApplyExp exp, InlineCalls visitor, Type required, Procedure proc)