| 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 | Interface and Description |
|---|---|
static interface |
Code.BytecodeMapAttribute
Maps bytecodes to some kind of attribute.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Code
This represents the Code attribute from the JVM Specification.
|
class |
ConstantValue |
class |
Exceptions |
class |
InnerClasses |
class |
LineNumberTable |
class |
SourceFile |
class |
StackMapTable
Consists of zero or more stack map frames.
|
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<BytecodeAttribute> |
Code.attributes |
| Modifier and Type | Method and Description |
|---|---|
<T extends BytecodeAttribute> |
Code.attribute(Class<T> c) |
| Modifier and Type | Method and Description |
|---|---|
List<BytecodeAttribute> |
Code.attributes() |
| Modifier and Type | Method and Description |
|---|---|
protected BytecodeAttribute |
ClassFileReader.parseAttribute(int offset,
ClassFile.Method enclosingMethod,
ClassFile enclosingClass) |
| Modifier and Type | Method and Description |
|---|---|
protected ArrayList<BytecodeAttribute> |
ClassFileReader.parseAttributes(int attributes,
ClassFile.Method enclosingMethod,
ClassFile enclosingClass)
parse any attributes associated with this field.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
BytecodeAttribute.Unknown
Class for representing unknown attributes.
|
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<BytecodeAttribute> |
ClassFile.attributes |
protected ArrayList<BytecodeAttribute> |
ClassFile.Field.attributes |
protected ArrayList<BytecodeAttribute> |
ClassFile.Method.attributes |
| Modifier and Type | Method and Description |
|---|---|
<T extends BytecodeAttribute> |
ClassFile.Method.attribute(Class<T> c) |
| Modifier and Type | Method and Description |
|---|---|
BytecodeAttribute |
ClassFile.attribute(String name) |
BytecodeAttribute |
ClassFile.Field.attribute(String name) |
BytecodeAttribute |
ClassFile.Method.attribute(String name) |
BytecodeAttribute |
BytecodeAttribute.Reader.read(BinaryInputStream input,
Map<Integer,Constant.Info> constantPool) |
static BytecodeAttribute |
BytecodeAttribute.Fn.read(BinaryInputStream input,
Map<Integer,Constant.Info> constantPool,
Map<String,BytecodeAttribute.Reader> readers)
Read a BytecodeAttribute from an input stream, using the given
constant pool and readers map to decode them.
|
| Modifier and Type | Method and Description |
|---|---|
List<BytecodeAttribute> |
ClassFile.attributes() |
List<BytecodeAttribute> |
ClassFile.Field.attributes() |
List<BytecodeAttribute> |
ClassFile.Method.attributes() |
static List<BytecodeAttribute> |
BytecodeAttribute.Fn.read(int count,
BinaryInputStream input,
Map<Integer,Constant.Info> constantPool,
Map<String,BytecodeAttribute.Reader> readers)
Read a list of BytecodeAttributes from an input stream, using the
given constant pool and readers map to decode them.
|
| Constructor and Description |
|---|
ClassFile(int version,
JvmType.Clazz type,
JvmType.Clazz superClazz,
List<JvmType.Clazz> interfaces,
List<Modifier> modifiers,
BytecodeAttribute... attributes) |
| Constructor and Description |
|---|
ClassFile(int version,
JvmType.Clazz type,
JvmType.Clazz superClazz,
List<JvmType.Clazz> interfaces,
List<Modifier> modifiers,
Collection<BytecodeAttribute> attributes) |
Copyright © 2016. All rights reserved.