Package | Description |
---|---|
gnu.bytecode |
Contains classes to generate, read,
write, and print Java bytecode in the form of
.class files. |
gnu.expr |
Supports
Expression ,
and various related classes need to compile programming languages. |
gnu.jemacs.lang |
Contains classes to implement the Emacs Lisp language.
|
gnu.kawa.functions |
Various core run-time functions and operators.
|
gnu.kawa.lispexpr |
Support classes for compiling and running Lisp languages.
|
gnu.kawa.reflect |
Contains classes to use reflection.
|
gnu.kawa.xml |
Classes for using XML within Kawa.
|
gnu.xquery.util | |
kawa.lang |
Core Kawa classes for Scheme and Lisp compile-time.
|
Modifier and Type | Field and Description |
---|---|
static ClassType |
Type.boolean_ctype
Deprecated.
|
protected ClassType |
SpecialObjectType.implementationType |
static ClassType |
Type.java_lang_Class_type
Deprecated.
|
static ClassType |
Type.javalangannotationAnnotationType |
static ClassType |
Type.javalangBooleanType |
static ClassType |
Type.javalangCharacterType |
static ClassType |
Type.javalangClassType |
static ClassType |
Type.javalanginvokeMethodHandleType |
static ClassType |
Type.javalangNumberType |
static ClassType |
Type.javalangObjectType |
static ClassType |
Type.javalangStringType |
static ClassType |
Type.javalangThrowableType |
static ClassType[] |
ClassType.noClasses |
static ClassType |
Type.number_type
Deprecated.
|
static ClassType |
Type.objectType |
static ClassType |
Type.pointer_type
Deprecated.
|
static ClassType |
Type.string_type
Deprecated.
|
static ClassType |
Type.throwable_type |
Modifier and Type | Method and Description |
---|---|
ClassType |
PrimType.boxedType() |
ClassType[] |
ClassType.getAllInterfaces()
Get all the interfaces this class implements.
|
ClassType |
AnnotationEntry.getAnnotationType() |
ClassType |
ClassType.getDeclaredClass(java.lang.String simpleName) |
ClassType |
Method.getDeclaringClass() |
ClassType |
Field.getDeclaringClass() |
ClassType |
Member.getDeclaringClass() |
ClassType |
ClassType.getDeclaringClass() |
ClassType[] |
Method.getExceptions() |
ClassType[] |
ExceptionsAttr.getExceptions()
The types of the exceptions in this attr.
|
ClassType[] |
ClassType.getInterfaces() |
ClassType[] |
ArrayType.getInterfaces() |
ClassType[] |
SpecialObjectType.getInterfaces() |
ClassType[] |
ObjectType.getInterfaces() |
ClassType |
ClassType.getOuterLinkType() |
ClassType |
ParameterizedType.getRawType() |
ClassType |
TypeVariable.getRawType() |
ClassType |
ClassType.getSuperclass() |
ClassType |
ArrayType.getSuperclass() |
ClassType |
SpecialObjectType.getSuperclass() |
ClassType |
ObjectType.getSuperclass() |
static ClassType |
ClassType.make(java.lang.String name)
Find a ClassType with the given name, or create a new one.
|
static ClassType |
ClassType.make(java.lang.String name,
ClassType superClass)
Deprecated.
|
static ClassType |
ClassFileInput.readClassType(java.io.InputStream str)
Read a class (in .class format) from an InputStream.
|
Modifier and Type | Method and Description |
---|---|
void |
ArrayClassLoader.addClass(ClassType ctype) |
void |
CodeAttr.addHandler(Label start_try,
Label end_try,
ClassType catch_type)
Add an exception handler.
|
void |
ClassType.addInterface(ClassType newInterface)
Add an interface to the list of implemented interfaces.
|
void |
ClassType.addMemberClass(ClassType member) |
static void |
Attribute.assignConstants(AttrContainer container,
ClassType cl)
Add any needed constant pool entries for all attributes in a container.
|
void |
SignatureAttr.assignConstants(ClassType cl) |
void |
SourceFileAttr.assignConstants(ClassType cl) |
void |
CodeAttr.assignConstants(ClassType cl) |
void |
LocalVarsAttr.assignConstants(ClassType cl) |
void |
ConstantValueAttr.assignConstants(ClassType cl) |
void |
RuntimeAnnotationsAttr.assignConstants(ClassType cl) |
void |
InnerClassesAttr.assignConstants(ClassType cl) |
void |
EnclosingMethodAttr.assignConstants(ClassType cl) |
void |
AnnotationDefaultAttr.assignConstants(ClassType cl) |
void |
SourceDebugExtAttr.assignConstants(ClassType cl) |
void |
ExceptionsAttr.assignConstants(ClassType cl) |
void |
Attribute.assignConstants(ClassType cl)
Add any needed constant pool entries for this Attribute.
|
void |
CodeAttr.emitCatchStart(ClassType type) |
void |
CodeAttr.emitNew(ClassType type)
Invoke new on a class type.
|
boolean |
ClassType.implementsInterface(ClassType iface)
True if this class/interface implements the interface iface.
|
static boolean |
ClassType.isAccessible(ClassType caller,
ClassType declaring,
ObjectType receiver,
int modifiers)
Check if a component is accessible from this class.
|
boolean |
ClassType.isSubclass(ClassType other) |
static ClassType |
ClassType.make(java.lang.String name,
ClassType superClass)
Deprecated.
|
void |
ClassTypeWriter.print(ClassType ctype) |
static void |
ClassTypeWriter.print(ClassType ctype,
java.io.PrintStream stream,
int flags) |
static void |
ClassTypeWriter.print(ClassType ctype,
java.io.PrintWriter stream,
int flags) |
void |
ClassTypeWriter.setClass(ClassType ctype) |
void |
Field.setConstantValue(java.lang.Object value,
ClassType ctype)
Set the ConstantValue attribute for this field.
|
void |
Method.setExceptions(ClassType[] exn_types) |
void |
ExceptionsAttr.setExceptions(ClassType[] excep_types)
Set the Exceptions attribute to refer to the given exception types.
|
void |
ExceptionsAttr.setExceptions(short[] indices,
ClassType cl)
Set the Exceptions attribute to refer to classes whose indices
in the constant pool of `cl' are given by `indices'.
|
void |
ClassType.setInterfaces(ClassType[] interfaces) |
Field |
ClassType.setOuterLink(ClassType outer)
Note that this class needs an other link ("this$0") field.
|
static void |
SourceFileAttr.setSourceFile(ClassType cl,
java.lang.String filename) |
void |
ClassType.setSuper(ClassType superClass) |
Constructor and Description |
---|
AnnotationEntry(ClassType annotationType) |
ClassFileInput(ClassType ctype,
java.io.InputStream str) |
ClassTypeWriter(ClassType ctype,
java.io.OutputStream stream,
int flags) |
ClassTypeWriter(ClassType ctype,
java.io.Writer stream,
int flags) |
EnclosingMethodAttr(ClassType cl) |
EnclosingMethodAttr(int class_index,
int method_index,
ClassType ctype) |
Field(ClassType ctype)
Add a new Field to a ClassType.
|
InnerClassesAttr(ClassType cl)
Add a new InnerClassesAttr to a ClassType.
|
InnerClassesAttr(short[] data,
ClassType cl) |
Method(Method base,
ClassType clas)
A copy constructor, except you can override the declaring class.
|
ParameterizedType(ClassType rawType,
Type... typeArgumentTypes) |
SourceDebugExtAttr(ClassType cl)
Add a new InnerClassesAttr to a ClassType.
|
SourceFileAttr(int index,
ClassType ctype) |
SpecialObjectType(java.lang.String name,
ClassType implementationType) |
Modifier and Type | Class and Description |
---|---|
class |
PairClassType
A class type implemented as a pair of an interface and a class.
|
Modifier and Type | Field and Description |
---|---|
ClassType |
Compilation.curClass |
ClassType |
PairClassType.instanceType |
static ClassType |
Compilation.javaStringType |
ClassType |
Compilation.mainClass |
ClassType |
Compilation.moduleClass
Generated class that extends ModuleBody.
|
static ClassType |
Compilation.scmBooleanType |
static ClassType |
Compilation.scmKeywordType |
static ClassType |
Compilation.scmListType |
static ClassType |
Compilation.scmSequenceType |
static ClassType |
Compilation.typeApplet |
static ClassType |
Compilation.typeCallContext |
static ClassType |
Compilation.typeCharSequence |
static ClassType |
Compilation.typeClass |
static ClassType |
Compilation.typeClassType |
static ClassType |
Compilation.typeCompiledProc |
static ClassType |
Compilation.typeConsumer |
static ClassType |
Compilation.typeEnvironment |
static ClassType |
Compilation.typeFieldLocation |
static ClassType |
Compilation.typeLanguage |
static ClassType |
Compilation.typeList |
static ClassType |
Compilation.typeLocation |
static ClassType |
Compilation.typeLocationProc |
static ClassType |
Compilation.typeMethodProc |
static ClassType |
Compilation.typeModuleBody |
static ClassType |
Compilation.typeObject |
static ClassType |
Compilation.typeObjectType |
static ClassType |
Compilation.typePair |
static ClassType |
Compilation.typeProcedure |
static ClassType |
Compilation.typeProcedure0 |
static ClassType |
Compilation.typeProcedure1 |
static ClassType |
Compilation.typeProcedure2 |
static ClassType |
Compilation.typeProcedure3 |
static ClassType |
Compilation.typeProcedure4 |
static ClassType[] |
Compilation.typeProcedureArray |
static ClassType |
Compilation.typeProcedureN |
static ClassType |
Compilation.typeRunnable |
static ClassType |
Compilation.typeRunnableModule |
static ClassType |
ConsumerTarget.typeSequences |
static ClassType |
Compilation.typeServlet |
static ClassType |
Compilation.typeStaticFieldLocation |
static ClassType |
Compilation.typeString |
static ClassType |
Compilation.typeSymbol |
static ClassType |
Compilation.typeType |
static ClassType |
Compilation.typeValues |
Modifier and Type | Method and Description |
---|---|
ClassType |
LambdaExp.checkForInitCall(Expression bodyFirst)
Check if argument is a this(...) or super(...) initializtion.
|
ClassType |
ModuleExp.classFor(Compilation comp)
Return the class for this module.
|
ClassType |
ClassExp.compileMembers(Compilation comp) |
ClassType |
Compilation.findNamedClass(java.lang.String name)
Search this Compilation for a ClassType with a given name.
|
ClassType |
ModuleInfo.getClassType() |
ClassType |
LambdaExp.getClassType()
The ClassType generated for this class.
|
ClassType |
ClassExp.getClassType()
The ClassType generated for this class.
|
protected ClassType |
LambdaExp.getCompiledClassType(Compilation comp)
Return the ClassType of the Procedure this is being compiled into.
|
protected ClassType |
ClassExp.getCompiledClassType(Compilation comp) |
ClassType |
PrimProcedure.getDeclaringClass() |
ClassType |
LambdaExp.getHeapFrameType() |
ClassType[] |
ModuleExp.getInterfaces() |
ClassType |
Compilation.getModuleType() |
ClassType |
ModuleExp.getSuperType() |
Modifier and Type | Method and Description |
---|---|
void |
Compilation.addClass(ClassType new_class) |
Variable |
LambdaExp.declareThis(ClassType clas) |
static java.lang.Object |
PairClassType.extractStaticLink(ClassType type)
This method is called from compiled code.
|
static ModuleInfo |
ModuleInfo.find(ClassType type) |
void |
Compilation.generateConstructor(ClassType clas,
LambdaExp lexp) |
static Method |
Compilation.getConstructor(ClassType clas,
LambdaExp lexp) |
static PrimProcedure |
PrimProcedure.getMethodFor(ClassType procClass,
java.lang.String name,
Declaration decl,
Expression[] args,
Language language) |
static PrimProcedure |
PrimProcedure.getMethodFor(ClassType procClass,
java.lang.String name,
Declaration decl,
Type[] atypes,
Language language) |
void |
Declaration.makeField(ClassType frameType,
Compilation comp,
Expression value) |
void |
ClassExp.setClassType(ClassType type) |
void |
ModuleExp.setInterfaces(ClassType[] s) |
void |
ModuleExp.setSuperType(ClassType s) |
void |
LambdaExp.setType(ClassType type) |
static ModuleExp |
ModuleExp.valueOf(ClassType type) |
Constructor and Description |
---|
ClassExp(boolean simple,
ClassType type) |
PrimProcedure(int op_code,
ClassType classtype,
java.lang.String name,
Type retType,
Type[] argTypes) |
ThisExp(ClassType type) |
Modifier and Type | Field and Description |
---|---|
static ClassType |
SaveExcursion.typeBuffer |
static ClassType |
SaveExcursion.typeSaveExcursion |
Modifier and Type | Field and Description |
---|---|
static ClassType |
CompileMisc.typeContinuation |
Modifier and Type | Field and Description |
---|---|
static ClassType |
GenArrayType.typeArray |
static ClassType |
LangObjType.typeLangObjType |
Modifier and Type | Method and Description |
---|---|
ClassType |
LangPrimType.boxedType() |
static ClassType |
LangObjType.coerceToClassType(java.lang.Object obj) |
static ClassType |
LangObjType.coerceToClassTypeOrNull(java.lang.Object type) |
ClassType |
ClassNamespace.getClassType() |
Modifier and Type | Method and Description |
---|---|
static ClassNamespace |
ClassNamespace.getInstance(java.lang.String name,
ClassType ctype) |
Constructor and Description |
---|
ClassNamespace(ClassType ctype) |
Modifier and Type | Field and Description |
---|---|
static ClassType |
LazyType.lazyType |
static ClassType |
LazyType.promiseType |
static ClassType |
OccurrenceType.typeOccurrenceType |
Modifier and Type | Method and Description |
---|---|
ClassType |
ClassMemberLocation.getDeclaringClass() |
Modifier and Type | Method and Description |
---|---|
static LazyType |
LazyType.getInstance(ClassType rawType,
Type valueType) |
static PrimProcedure[] |
ClassMethods.getMethods(ObjectType dtype,
java.lang.String mname,
char mode,
ClassType caller,
Language language)
Return the methods of a class with the specified name and flag.
|
protected static PrimProcedure[] |
CompileInvoke.getMethods(ObjectType ctype,
java.lang.String mname,
ClassType caller,
Invoke iproc) |
static PrimProcedure |
Invoke.getStaticMethod(ClassType type,
java.lang.String name,
Expression[] args)
Deprecated.
|
static PrimProcedure |
CompileInvoke.getStaticMethod(ClassType type,
java.lang.String name,
Expression[] args) |
protected void |
CompileBuildObject.init(ApplyExp exp,
InlineCalls visitor,
Type required,
ObjectType ctype,
ClassType caller) |
static Member |
SlotGet.lookupMember(ObjectType clas,
java.lang.String name,
ClassType caller)
Get a named property - field or member class or 'get' accessor method.
|
static Member |
SlotSet.lookupMember(ObjectType clas,
java.lang.String name,
ClassType caller)
Get a setter property - field or 'set' accessor method.
|
static CompileBuildObject |
CompileBuildObject.make(ApplyExp exp,
InlineCalls visitor,
Type required,
ObjectType ctype,
ClassType caller) |
static ApplyExp |
Invoke.makeInvokeStatic(ClassType type,
java.lang.String name,
Expression... args)
Return an ApplyExp that will call a method with given arguments.
|
Constructor and Description |
---|
ClassMemberLocation(java.lang.Object instance,
ClassType type,
java.lang.String mname) |
FieldLocation(java.lang.Object instance,
ClassType type,
java.lang.String mname) |
LazyType(ClassType rawType,
Type valueType) |
MakeAnnotation(ClassType annotationType) |
StaticFieldLocation(ClassType type,
java.lang.String mname) |
StaticGet(ClassType ctype,
java.lang.String name,
Type ftype,
int flags) |
StaticSet(ClassType ctype,
java.lang.String name,
Type ftype,
int flags) |
Modifier and Type | Field and Description |
---|---|
static ClassType |
Focus.TYPE |
static ClassType |
AttributeType.typeAttributeType |
static ClassType |
ElementType.typeElementType |
static ClassType |
NodeType.typeKNode |
static ClassType |
CoerceNodes.typeNodes |
static ClassType |
NodeType.typeNodeType |
static ClassType |
ProcessingInstructionType.typeProcessingInstructionType |
static ClassType |
SortNodes.typeSortedNodes |
Modifier and Type | Field and Description |
---|---|
static ClassType |
ValuesFilter.typeValuesFilter |
Modifier and Type | Field and Description |
---|---|
static ClassType |
Pattern.typePattern |
Modifier and Type | Method and Description |
---|---|
static ClassType |
Record.makeRecordType(java.lang.String name,
LList fnames) |
Modifier and Type | Method and Description |
---|---|
static LList |
Record.typeFieldNames(ClassType ctype) |
Constructor and Description |
---|
GetFieldProc(ClassType ctype,
java.lang.String fname) |
GetFieldProc(ClassType ctype,
java.lang.String name,
Type ftype,
int flags) |
RecordConstructor(ClassType type) |
RecordConstructor(ClassType type,
Field[] fields) |
RecordConstructor(ClassType type,
java.lang.Object fieldsList) |
SetFieldProc(ClassType ctype,
java.lang.String fname) |
SetFieldProc(ClassType ctype,
java.lang.String name,
Type ftype,
int flags) |