gnu.kawa.functions

Class GetModuleClass

public class GetModuleClass extends Procedure0 implements Inlineable

Special procedure to get the Class of the current module. Since "current module" is defined by lexical scope, this isn't a first-class procedure - it has to be inlined.
Field Summary
static GetModuleClassgetModuleClass
Method Summary
Objectapply0()
voidcompile(ApplyExp exp, Compilation comp, Target target)
static ExpressiongetModuleClassURI(Compilation comp)
Return an expression that evaluates to a module-relative URI.
TypegetReturnType(Expression[] args)

Field Detail

getModuleClass

public static final GetModuleClass getModuleClass

Method Detail

apply0

public Object apply0()

compile

public void compile(ApplyExp exp, Compilation comp, Target target)

getModuleClassURI

public static Expression getModuleClassURI(Compilation comp)
Return an expression that evaluates to a module-relative URI. This has the Kawa-specific URI scheme "class-resource:" and an assocatied ClassLoader (using a WekaHashMap). It used to reference resources located using the compiled class's ClassLoader.

getReturnType

public Type getReturnType(Expression[] args)