Package | Description |
---|---|
clojure.asm |
Provides a small and fast bytecode manipulation framework.
|
clojure.asm.commons |
Provides some useful class and method adapters.
|
clojure.lang |
Modifier and Type | Field and Description |
---|---|
static Type |
Type.BOOLEAN_TYPE
The boolean type.
|
static Type |
Type.BYTE_TYPE
The byte type.
|
static Type |
Type.CHAR_TYPE
The char type.
|
static Type |
Type.DOUBLE_TYPE
The double type.
|
static Type |
Type.FLOAT_TYPE
The float type.
|
static Type |
Type.INT_TYPE
The int type.
|
static Type |
Type.LONG_TYPE
The long type.
|
static Type |
Type.SHORT_TYPE
The short type.
|
static Type |
Type.VOID_TYPE
The void type.
|
Modifier and Type | Method and Description |
---|---|
static Type[] |
Type.getArgumentTypes(java.lang.reflect.Method method)
Returns the Java types corresponding to the argument types of the given
method.
|
static Type[] |
Type.getArgumentTypes(java.lang.String methodDescriptor)
Returns the Java types corresponding to the argument types of the given
method descriptor.
|
Type |
Type.getElementType()
Returns the type of the elements of this array type.
|
static Type |
Type.getObjectType(java.lang.String name)
Returns the
OBJECT type for the given internal class name. |
static Type |
Type.getReturnType(java.lang.reflect.Method method)
Returns the Java type corresponding to the return type of the given
method.
|
static Type |
Type.getReturnType(java.lang.String methodDescriptor)
Returns the Java type corresponding to the return type of the given
method descriptor.
|
private static Type |
Type.getType(char[] buf,
int off)
Returns the Java type corresponding to the given type descriptor.
|
static Type |
Type.getType(java.lang.Class c)
Returns the Java type corresponding to the given class.
|
static Type |
Type.getType(java.lang.String typeDescriptor)
Returns the Java type corresponding to the given type descriptor.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
Type.getMethodDescriptor(Type returnType,
Type[] argumentTypes)
Returns the descriptor corresponding to the given argument and return
types.
|
static java.lang.String |
Type.getMethodDescriptor(Type returnType,
Type[] argumentTypes)
Returns the descriptor corresponding to the given argument and return
types.
|
(package private) void |
Frame.initInputFrame(ClassWriter cw,
int access,
Type[] args,
int maxLocals)
Initializes the input frame of the first basic block from the method
descriptor.
|
Modifier and Type | Field and Description |
---|---|
private Type[] |
GeneratorAdapter.argumentTypes
Argument types of the method visited by this adapter.
|
private static Type |
GeneratorAdapter.BOOLEAN_TYPE |
private static Type |
GeneratorAdapter.BYTE_TYPE |
private static Type |
GeneratorAdapter.CHARACTER_TYPE |
private static Type |
GeneratorAdapter.DOUBLE_TYPE |
private static Type |
GeneratorAdapter.FLOAT_TYPE |
private static Type |
GeneratorAdapter.INTEGER_TYPE |
private static Type |
GeneratorAdapter.LONG_TYPE |
private static Type |
GeneratorAdapter.NUMBER_TYPE |
private static Type |
LocalVariablesSorter.OBJECT_TYPE |
private static Type |
GeneratorAdapter.OBJECT_TYPE |
private Type |
GeneratorAdapter.returnType
Return type of the method visited by this adapter.
|
private static Type |
GeneratorAdapter.SHORT_TYPE |
Modifier and Type | Method and Description |
---|---|
Type[] |
Method.getArgumentTypes()
Returns the argument types of the method described by this object.
|
Type |
GeneratorAdapter.getLocalType(int local)
Returns the type of the given local variable.
|
Type |
Method.getReturnType()
Returns the return type of the method described by this object.
|
Modifier and Type | Method and Description |
---|---|
void |
GeneratorAdapter.arrayLoad(Type type)
Generates the instruction to load an element from an array.
|
void |
GeneratorAdapter.arrayStore(Type type)
Generates the instruction to store an element in an array.
|
void |
GeneratorAdapter.box(Type type)
Generates the instructions to box the top stack value.
|
void |
GeneratorAdapter.cast(Type from,
Type to)
Generates the instructions to cast a numerical value from one type to
another.
|
void |
GeneratorAdapter.catchException(Label start,
Label end,
Type exception)
Marks the start of an exception handler.
|
void |
GeneratorAdapter.checkCast(Type type)
Generates the instruction to check that the top stack value is of the
given type.
|
private void |
GeneratorAdapter.fieldInsn(int opcode,
Type ownerType,
java.lang.String name,
Type fieldType)
Generates a get field or set field instruction.
|
void |
GeneratorAdapter.getField(Type owner,
java.lang.String name,
Type type)
Generates the instruction to push the value of a non static field on the
stack.
|
private static java.lang.String[] |
GeneratorAdapter.getInternalNames(Type[] types)
Returns the internal names of the given types.
|
void |
GeneratorAdapter.getStatic(Type owner,
java.lang.String name,
Type type)
Generates the instruction to push the value of a static field on the
stack.
|
void |
GeneratorAdapter.ifCmp(Type type,
int mode,
Label label)
Generates the instructions to jump to a label based on the comparison of
the top two stack values.
|
void |
GeneratorAdapter.instanceOf(Type type)
Generates the instruction to test if the top stack value is of the given
type.
|
void |
GeneratorAdapter.invokeConstructor(Type type,
Method method)
Generates the instruction to invoke a constructor.
|
private void |
GeneratorAdapter.invokeInsn(int opcode,
Type type,
Method method)
Generates an invoke method instruction.
|
void |
GeneratorAdapter.invokeInterface(Type owner,
Method method)
Generates the instruction to invoke an interface method.
|
void |
GeneratorAdapter.invokeStatic(Type owner,
Method method)
Generates the instruction to invoke a static method.
|
void |
GeneratorAdapter.invokeVirtual(Type owner,
Method method)
Generates the instruction to invoke a normal method.
|
private void |
GeneratorAdapter.loadInsn(Type type,
int index)
Generates the instruction to push a local variable on the stack.
|
void |
GeneratorAdapter.loadLocal(int local,
Type type)
Generates the instruction to load the given local variable on the stack.
|
void |
GeneratorAdapter.math(int op,
Type type)
Generates the instruction to do the specified mathematical or logical
operation.
|
void |
GeneratorAdapter.newArray(Type type)
Generates the instruction to create a new array.
|
void |
GeneratorAdapter.newInstance(Type type)
Generates the instruction to create a new object.
|
int |
LocalVariablesSorter.newLocal(Type type)
Creates a new local variable of the given type.
|
void |
GeneratorAdapter.push(Type value)
Generates the instruction to push the given value on the stack.
|
void |
GeneratorAdapter.putField(Type owner,
java.lang.String name,
Type type)
Generates the instruction to store the top stack value in a non static
field.
|
void |
GeneratorAdapter.putStatic(Type owner,
java.lang.String name,
Type type)
Generates the instruction to store the top stack value in a static field.
|
private int |
LocalVariablesSorter.remap(int var,
Type type) |
protected void |
LocalVariablesSorter.setLocalType(int local,
Type type)
Sets the current type of the given local variable.
|
protected void |
GeneratorAdapter.setLocalType(int local,
Type type) |
private void |
GeneratorAdapter.storeInsn(Type type,
int index)
Generates the instruction to store the top stack value in a local
variable.
|
void |
GeneratorAdapter.storeLocal(int local,
Type type)
Generates the instruction to store the top stack value in the given local
variable.
|
void |
GeneratorAdapter.swap(Type prev,
Type type)
Generates the instructions to swap the top two stack values.
|
void |
GeneratorAdapter.throwException(Type type,
java.lang.String msg)
Generates the instructions to create and throw an exception.
|
private void |
GeneratorAdapter.typeInsn(int opcode,
Type type)
Generates a type dependent instruction.
|
void |
GeneratorAdapter.unbox(Type type)
Generates the instructions to unbox the top stack value.
|
Constructor and Description |
---|
GeneratorAdapter(int access,
Method method,
java.lang.String signature,
Type[] exceptions,
ClassVisitor cv)
Creates a new
GeneratorAdapter . |
Method(java.lang.String name,
Type returnType,
Type[] argumentTypes)
Creates a new
Method . |
Method(java.lang.String name,
Type returnType,
Type[] argumentTypes)
Creates a new
Method . |
Modifier and Type | Field and Description |
---|---|
(package private) static Type |
Compiler.FnExpr.aFnType |
private static Type |
Compiler.AFUNCTION_TYPE |
private static Type[][] |
Compiler.ARG_TYPES |
(package private) Type[] |
Compiler.FnMethod.argtypes |
(package private) Type[] |
Compiler.NewInstanceMethod.argTypes |
(package private) static Type |
Compiler.BOOLEAN_OBJECT_TYPE |
(package private) static Type |
Compiler.HostExpr.BOOLEAN_TYPE |
(package private) static Type |
Compiler.HostExpr.BYTE_TYPE |
(package private) static Type |
Compiler.HostExpr.CHAR_TYPE |
(package private) static Type |
Compiler.CLASS_TYPE |
(package private) static Type |
Compiler.HostExpr.DOUBLE_TYPE |
(package private) static Type |
Compiler.ObjExpr.DYNAMIC_CLASSLOADER_TYPE |
(package private) static Type |
Compiler.EmptyExpr.EMPTY_LIST_TYPE |
private static Type[] |
Compiler.EXCEPTION_TYPES |
(package private) static Type |
Compiler.HostExpr.FLOAT_TYPE |
(package private) static Type |
Compiler.EmptyExpr.HASHMAP_TYPE |
(package private) static Type |
Compiler.EmptyExpr.HASHSET_TYPE |
private static Type |
Compiler.IFN_TYPE |
(package private) static Type |
Compiler.ObjExpr.ILOOKUP_SITE_TYPE |
(package private) static Type |
Compiler.ObjExpr.ILOOKUP_THUNK_TYPE |
(package private) static Type |
Compiler.KeywordInvokeExpr.ILOOKUP_TYPE |
(package private) static Type |
Compiler.HostExpr.INTEGER_TYPE |
(package private) static Type |
Compiler.IOBJ_TYPE |
(package private) static Type |
Compiler.MetaExpr.IOBJ_TYPE |
(package private) static Type |
Compiler.IPERSISTENTMAP_TYPE |
(package private) static Type |
Compiler.ObjExpr.KEYWORD_LOOKUPSITE_TYPE |
private static Type |
Compiler.KEYWORD_TYPE |
(package private) static Type |
Compiler.EmptyExpr.LIST_TYPE |
(package private) static Type |
Compiler.HostExpr.LONG_TYPE |
(package private) static Type |
Compiler.NS_TYPE |
(package private) static Type |
Compiler.HostExpr.NUMBER_TYPE |
(package private) static Type |
Compiler.CaseExpr.NUMBER_TYPE |
private static Type |
Compiler.NUMBERS_TYPE |
private static Type |
Compiler.OBJECT_TYPE |
(package private) Type |
Compiler.ObjExpr.objtype |
Type[] |
Compiler.StaticInvokeExpr.paramtypes |
(package private) static Type |
Compiler.REFLECTOR_TYPE |
(package private) static Type |
Compiler.FnExpr.restFnType |
(package private) Type |
Compiler.NewInstanceMethod.retType |
private static Type |
Compiler.RT_TYPE |
(package private) static Type |
Compiler.HostExpr.SHORT_TYPE |
private static Type |
Compiler.SYMBOL_TYPE |
Type |
Compiler.StaticInvokeExpr.target |
(package private) static Type |
Compiler.THROWABLE_TYPE |
(package private) static Type |
Compiler.UTIL_TYPE |
private static Type |
Compiler.VAR_TYPE |
(package private) static Type |
Compiler.EmptyExpr.VECTOR_TYPE |
Modifier and Type | Method and Description |
---|---|
(package private) Type |
Compiler.ObjExpr.constantType(int id) |
(package private) Type[] |
Compiler.ObjExpr.ctorTypes() |
(package private) Type[] |
Compiler.FnMethod.getArgTypes() |
(package private) abstract Type[] |
Compiler.ObjMethod.getArgTypes() |
(package private) Type[] |
Compiler.NewInstanceMethod.getArgTypes() |
private Type |
Compiler.StaticInvokeExpr.getReturnType() |
(package private) Type |
Compiler.FnMethod.getReturnType() |
(package private) abstract Type |
Compiler.ObjMethod.getReturnType() |
(package private) Type |
Compiler.NewInstanceMethod.getReturnType() |
(package private) static Type |
Compiler.getType(java.lang.Class c) |
Type |
Compiler.ObjExpr.objtype() |
Modifier and Type | Method and Description |
---|---|
private void |
Compiler.CaseExpr.emitExprForInts(Compiler.ObjExpr objx,
GeneratorAdapter gen,
Type exprType,
Label defaultLabel) |
private void |
Compiler.CaseExpr.emitThenForInts(Compiler.ObjExpr objx,
GeneratorAdapter gen,
Type exprType,
Compiler.Expr test,
Compiler.Expr then,
Label defaultLabel,
boolean emitUnboxed) |
Constructor and Description |
---|
Compiler.StaticInvokeExpr(Type target,
java.lang.Class retClass,
java.lang.Class[] paramclasses,
Type[] paramtypes,
boolean variadic,
IPersistentVector args,
Symbol tag) |
Compiler.StaticInvokeExpr(Type target,
java.lang.Class retClass,
java.lang.Class[] paramclasses,
Type[] paramtypes,
boolean variadic,
IPersistentVector args,
Symbol tag) |