| Package | Description |
|---|---|
| jasm.attributes |
Provides classes for representing class file attributes, including code necessary for encoding and decoding them.
|
| jasm.io |
Provides classes for reading/writing class files and Jasm files.
|
| jasm.lang |
Provides core class for representing JVM class files, bytecodes, types and constants.
|
| Modifier and Type | Field and Description |
|---|---|
JvmType.Clazz |
Code.Handler.exception |
protected JvmType.Clazz |
InnerClasses.type |
| Modifier and Type | Field and Description |
|---|---|
protected List<JvmType.Clazz> |
Exceptions.exceptions |
protected List<Triple<JvmType.Clazz,JvmType.Clazz,List<Modifier>>> |
InnerClasses.inners |
protected List<Triple<JvmType.Clazz,JvmType.Clazz,List<Modifier>>> |
InnerClasses.inners |
| Modifier and Type | Method and Description |
|---|---|
JvmType.Clazz |
InnerClasses.type() |
| Modifier and Type | Method and Description |
|---|---|
List<JvmType.Clazz> |
Exceptions.exceptions() |
List<Triple<JvmType.Clazz,JvmType.Clazz,List<Modifier>>> |
InnerClasses.inners() |
List<Triple<JvmType.Clazz,JvmType.Clazz,List<Modifier>>> |
InnerClasses.inners() |
| Constructor and Description |
|---|
Handler(int start,
int end,
String label,
JvmType.Clazz exception) |
InnerClasses(JvmType.Clazz type,
List<Triple<JvmType.Clazz,JvmType.Clazz,List<Modifier>>> inners)
Create an InnerClasses attribute (see JLS Section 4.7.5).
|
| Constructor and Description |
|---|
Exceptions(List<JvmType.Clazz> exceptions) |
InnerClasses(JvmType.Clazz type,
List<Triple<JvmType.Clazz,JvmType.Clazz,List<Modifier>>> inners)
Create an InnerClasses attribute (see JLS Section 4.7.5).
|
InnerClasses(JvmType.Clazz type,
List<Triple<JvmType.Clazz,JvmType.Clazz,List<Modifier>>> inners)
Create an InnerClasses attribute (see JLS Section 4.7.5).
|
| Modifier and Type | Method and Description |
|---|---|
static JvmType.Clazz |
ClassFileReader.parseClassDescriptor(String descriptor)
This method parses a descriptor of the form "Lxxx.yyy.zzz$aaa$bbb;"
|
| Modifier and Type | Method and Description |
|---|---|
protected Triple<JvmType.Clazz,String,JvmType> |
ClassFileReader.decodeInstructionOwnerNameType(int offset,
int line) |
protected Triple<List<JvmType.Reference>,JvmType.Clazz,List<JvmType.Clazz>> |
ClassFileReader.parseClassSigDesc(String descriptor)
The class signature provides information about the generic type
parameters declared for a class.
|
protected Triple<List<JvmType.Reference>,JvmType.Clazz,List<JvmType.Clazz>> |
ClassFileReader.parseClassSigDesc(String descriptor)
The class signature provides information about the generic type
parameters declared for a class.
|
protected ArrayList<JvmType.Clazz> |
ClassFileReader.parseInterfaces(int interfaces)
Get array of interfaces implemented by this class.
|
static Pair<JvmType.Clazz,Integer> |
ClassFileReader.parseInternalClassDescriptor(String descriptor,
int pos) |
| Modifier and Type | Method and Description |
|---|---|
protected InnerClasses |
ClassFileReader.parseInnerClasses(int offset,
String name,
JvmType.Clazz type) |
| Modifier and Type | Field and Description |
|---|---|
protected List<JvmType.Clazz> |
ClassFile.interfaces |
| Modifier and Type | Method and Description |
|---|---|
static JvmType.Clazz |
JvmTypes.boxedType(JvmType.Primitive p)
Given a primitive type, determine the equivalent boxed type.
|
static JvmType.Clazz |
JvmTypes.parentType(JvmType.Clazz t)
Return type representing the enclosing class for the given type, or null
if the given type is already outermost.
|
static JvmType.Clazz |
JvmTypes.stripGenerics(JvmType.Clazz ct) |
JvmType.Clazz |
ClassFile.superClass() |
JvmType.Clazz |
ClassFile.type() |
| Modifier and Type | Method and Description |
|---|---|
List<JvmType.Clazz> |
ClassFile.Method.exceptions() |
List<JvmType.Clazz> |
ClassFile.inners() |
List<JvmType.Clazz> |
ClassFile.interfaces() |
| Modifier and Type | Method and Description |
|---|---|
static Constant.Class |
Constant.buildClass(JvmType.Clazz type)
This method creates a CONSTANT_Class object from a Type Clazz
|
static Constant.FieldRef |
Constant.buildFieldRef(JvmType.Clazz owner,
String name,
JvmType type)
Creates a CONSTANT_FieldRef object.
|
static JvmType.Clazz |
JvmTypes.parentType(JvmType.Clazz t)
Return type representing the enclosing class for the given type, or null
if the given type is already outermost.
|
void |
ClassFile.setType(JvmType.Clazz t) |
static JvmType.Clazz |
JvmTypes.stripGenerics(JvmType.Clazz ct) |
static JvmType.Primitive |
JvmTypes.unboxedType(JvmType.Clazz p)
Given a primitive wrapper class (i.e.
|
| Constructor and Description |
|---|
ClassFile(int version,
JvmType.Clazz type,
JvmType.Clazz superClazz,
List<JvmType.Clazz> interfaces,
List<Modifier> modifiers,
BytecodeAttribute... attributes) |
ClassFile(int version,
JvmType.Clazz type,
JvmType.Clazz superClazz,
List<JvmType.Clazz> interfaces,
List<Modifier> modifiers,
Collection<BytecodeAttribute> attributes) |
GetField(JvmType.Clazz owner,
String name,
JvmType type,
Bytecode.FieldMode mode) |
PutField(JvmType.Clazz owner,
String name,
JvmType type,
Bytecode.FieldMode mode) |
| Constructor and Description |
|---|
ClassFile(int version,
JvmType.Clazz type,
JvmType.Clazz superClazz,
List<JvmType.Clazz> interfaces,
List<Modifier> modifiers,
BytecodeAttribute... attributes) |
ClassFile(int version,
JvmType.Clazz type,
JvmType.Clazz superClazz,
List<JvmType.Clazz> interfaces,
List<Modifier> modifiers,
Collection<BytecodeAttribute> attributes) |
Copyright © 2016. All rights reserved.