| java.lang.Object gnu.mapping.PropertySet gnu.mapping.Procedure gnu.mapping.Procedure0 gnu.expr.Expression gnu.expr.ScopeExp gnu.expr.LambdaExp gnu.expr.ClassExp
All known Subclasses: gnu.expr.ObjectExp,
Field Summary | |
public LambdaExp | clinitMethod An artificial method named
"$clinit$" for evaluating
static initializations. | boolean | explicitInit True if there is at least one explicit "" ("*init*"} method. | public LambdaExp | initMethod An artificial method named
"$finit$" for evaluating
non-static initializations.
All constructors need to call this. | ClassType | instanceType The class of instances of this class.
Same as super.type unless isMakingClassPair(), in which case super.type
is an interface, and instanceType is a class implementing the interface.
Using an interface plus a class gives us true multiple inheritance. | boolean | partsDeclared | boolean | simple | public Expression[] | supers List of base classes and implemented interfaces. |
clinitMethod | public LambdaExp clinitMethod(Code) | | An artificial method named
"$clinit$" for evaluating
static initializations.
|
explicitInit | boolean explicitInit(Code) | | True if there is at least one explicit "" ("*init*"} method.
|
initMethod | public LambdaExp initMethod(Code) | | An artificial method named
"$finit$" for evaluating
non-static initializations.
All constructors need to call this.
|
instanceType | ClassType instanceType(Code) | | The class of instances of this class.
Same as super.type unless isMakingClassPair(), in which case super.type
is an interface, and instanceType is a class implementing the interface.
Using an interface plus a class gives us true multiple inheritance.
|
partsDeclared | boolean partsDeclared(Code) | | |
supers | public Expression[] supers(Code) | | List of base classes and implemented interfaces.
|
ClassExp | public ClassExp()(Code) | | |
ClassExp | public ClassExp(boolean simple)(Code) | | |
getImplMethods | static void getImplMethods(ClassType interfaceType, String mname, Type[] paramTypes, Vector vec)(Code) | | Return implementation method matching name and param types.
Used when compiling a pair class and generating a concrete method
implementing an interface method, to find static implementation method
in this or super implementation class we need to call.
Parameters: interfaceType - search the implementation classes correspondingto this interface type and its super-interfaces. Parameters: mname - method name to look for. Parameters: paramTypes - method types to look for. Parameters: vec - where to place found methodsIf a method is found, don't search super-interfaces, as the found methodis more specific and overrides any that might in super-interfaces. |
isMakingClassPair | public boolean isMakingClassPair()(Code) | | True if we should make a pair of an interface and a class.
|
isSimple | public boolean isSimple()(Code) | | |
mustCompile | protected boolean mustCompile()(Code) | | |
setSimple | public void setSimple(boolean value)(Code) | | |
slotToMethodName | public static String slotToMethodName(String prefix, String sname)(Code) | | Mangle a "slot" name to a get- or set- method name.
Parameters: prefix - either "get" or "set" Parameters: sname - a "slot" (property) name. This is mangled if needed. |
Methods inherited from gnu.expr.ScopeExp | public void add(Declaration decl)(Code)(Java Doc) public void add(Declaration prev, Declaration decl)(Code)(Java Doc) final public Declaration addDeclaration(Object name)(Code)(Java Doc) final public Declaration addDeclaration(Object name, Type type)(Code)(Java Doc) final public void addDeclaration(Declaration decl)(Code)(Java Doc) public int countDecls()(Code)(Java Doc) public LambdaExp currentLambda()(Code)(Java Doc) public ModuleExp currentModule()(Code)(Java Doc) public static void duplicateDeclarationError(Declaration oldDecl, Declaration newDecl, Compilation comp)(Code)(Java Doc) public Declaration firstDecl()(Code)(Java Doc) public Declaration getDefine(Object name, char severity, Compilation parser)(Code)(Java Doc) public Declaration getNoDefine(Object name)(Code)(Java Doc) public Scope getVarScope()(Code)(Java Doc) public Declaration lookup(Object sym)(Code)(Java Doc) public Declaration lookup(Object sym, Language language, int namespace)(Code)(Java Doc) public static int nesting(ScopeExp sc)(Code)(Java Doc) public void popScope(CodeAttr code)(Code)(Java Doc) public void remove(Declaration decl)(Code)(Java Doc) public void remove(Declaration prev, Declaration decl)(Code)(Java Doc) public void replaceFollowing(Declaration prev, Declaration newDecl)(Code)(Java Doc) protected void setIndexes()(Code)(Java Doc) public String toString()(Code)(Java Doc) protected Expression walk(ExpWalker walker)(Code)(Java Doc)
|
Methods inherited from gnu.expr.Expression | public void apply(CallContext ctx) throws Throwable(Code)(Java Doc) final public Object apply0() throws Throwable(Code)(Java Doc) abstract public void compile(Compilation comp, Target target)(Code)(Java Doc) final public void compile(Compilation comp, Type type)(Code)(Java Doc) final public void compile(Compilation comp, Declaration lhs)(Code)(Java Doc) public static void compileButFirst(Expression exp, Compilation comp)(Code)(Java Doc) final public void compileNotePosition(Compilation comp, Target target, Expression position)(Code)(Java Doc) final public void compileWithPosition(Compilation comp, Target target)(Code)(Java Doc) final public void compileWithPosition(Compilation comp, Target target, Expression position)(Code)(Java Doc) final public Object eval(CallContext ctx) throws Throwable(Code)(Java Doc) final public Object eval(Environment env) throws Throwable(Code)(Java Doc) final public int getColumnNumber()(Code)(Java Doc) final public String getFileName()(Code)(Java Doc) public boolean getFlag(int flag)(Code)(Java Doc) public int getFlags()(Code)(Java Doc) final public int getLineNumber()(Code)(Java Doc) public String getPublicId()(Code)(Java Doc) public String getSystemId()(Code)(Java Doc) public Type getType()(Code)(Java Doc) public Expression inline(ApplyExp exp, InlineCalls walker, Declaration decl)(Code)(Java Doc) public boolean isStableSourceLocation()(Code)(Java Doc) public static Expression makeWhile(Object cond, Object body, Compilation parser)(Code)(Java Doc) final public int match0(CallContext ctx)(Code)(Java Doc) abstract protected boolean mustCompile()(Code)(Java Doc) final public void print(Consumer out)(Code)(Java Doc) abstract public void print(OutPort ps)(Code)(Java Doc) public void printLineColumn(OutPort out)(Code)(Java Doc) final public void setFile(String filename)(Code)(Java Doc) public void setFlag(boolean setting, int flag)(Code)(Java Doc) public void setFlag(int flag)(Code)(Java Doc) final public Expression setLine(Expression old)(Code)(Java Doc) final public void setLine(int lineno, int colno)(Code)(Java Doc) final public void setLine(int lineno)(Code)(Java Doc) public void setLine(Compilation comp)(Code)(Java Doc) final public void setLocation(SourceLocator location)(Code)(Java Doc) public boolean side_effects()(Code)(Java Doc) public String toString()(Code)(Java Doc) public Object valueIfConstant()(Code)(Java Doc) protected Expression walk(ExpWalker walker)(Code)(Java Doc) protected void walkChildren(ExpWalker walker)(Code)(Java Doc)
|
Methods inherited from gnu.mapping.Procedure | public void apply(CallContext ctx) throws Throwable(Code)(Java Doc) public static void apply(Procedure proc, CallContext ctx) throws Throwable(Code)(Java Doc) abstract public Object apply0() throws Throwable(Code)(Java Doc) abstract public Object apply1(Object arg1) throws Throwable(Code)(Java Doc) abstract public Object apply2(Object arg1, Object arg2) throws Throwable(Code)(Java Doc) abstract public Object apply3(Object arg1, Object arg2, Object arg3) throws Throwable(Code)(Java Doc) abstract public Object apply4(Object arg1, Object arg2, Object arg3, Object arg4) throws Throwable(Code)(Java Doc) abstract public Object applyN(Object[] args) throws Throwable(Code)(Java Doc) public void check0(CallContext ctx)(Code)(Java Doc) public void check1(Object arg1, CallContext ctx)(Code)(Java Doc) public void check2(Object arg1, Object arg2, CallContext ctx)(Code)(Java Doc) public void check3(Object arg1, Object arg2, Object arg3, CallContext ctx)(Code)(Java Doc) public void check4(Object arg1, Object arg2, Object arg3, Object arg4, CallContext ctx)(Code)(Java Doc) public static void checkArgCount(Procedure proc, int argCount)(Code)(Java Doc) public void checkN(Object[] args, CallContext ctx)(Code)(Java Doc) public Procedure getSetter()(Code)(Java Doc) public String getSourceLocation()(Code)(Java Doc) public int match0(CallContext ctx)(Code)(Java Doc) public int match1(Object arg1, CallContext ctx)(Code)(Java Doc) public int match2(Object arg1, Object arg2, CallContext ctx)(Code)(Java Doc) public int match3(Object arg1, Object arg2, Object arg3, CallContext ctx)(Code)(Java Doc) public int match4(Object arg1, Object arg2, Object arg3, Object arg4, CallContext ctx)(Code)(Java Doc) public int matchN(Object[] args, CallContext ctx)(Code)(Java Doc) final public int maxArgs()(Code)(Java Doc) final public int minArgs()(Code)(Java Doc) public int numArgs()(Code)(Java Doc) public void set0(Object result) throws Throwable(Code)(Java Doc) public void set1(Object arg1, Object value) throws Throwable(Code)(Java Doc) public void setN(Object[] args) throws Throwable(Code)(Java Doc) public void setSetter(Procedure setter)(Code)(Java Doc) public void setSourceLocation(String file, int line)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|