gnu.expr
public class ClassExp extends LambdaExp
Field Summary | |
---|---|
LambdaExp | clinitMethod An artificial method named {@code "$clinit$"} for evaluating
static initializations. |
LambdaExp | initMethod An artificial method named {@code "$finit$"} for evaluating
non-static initializations.
|
Expression[] | supers List of base classes and implemented interfaces. |
Constructor Summary | |
---|---|
ClassExp() | |
ClassExp(boolean simple) |
Method Summary | |
---|---|
void | compile(Compilation comp, Target target) |
ClassType | compile(Compilation comp) |
void | compilePushClass(Compilation comp, Target target) |
Field | compileSetField(Compilation comp) |
void | declareParts(Compilation comp) |
protected ClassType | getCompiledClassType(Compilation comp) |
String | getJavaName() |
boolean | isMakingClassPair() True if we should make a pair of an interface and a class. |
boolean | isSimple() |
protected boolean | mustCompile() |
void | print(OutPort out) |
void | setClassName(Compilation comp) |
void | setSimple(boolean value) |
void | setTypes(Compilation comp) |
static String | slotToMethodName(String prefix, String sname) Mangle a "slot" name to a get- or set- method name. |
protected Expression | walk(ExpWalker walker) |
protected void | walkChildren(ExpWalker walker) |
Parameters: prefix either "get" or "set" sname a "slot" (property) name. This is mangled if needed.