|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Constant.Info | |
---|---|
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. |
Uses of Constant.Info in jasm.attributes |
---|
Method parameters in jasm.attributes with type arguments of type Constant.Info | |
---|---|
void |
StackMapTable.addPoolItems(java.util.Set<Constant.Info> constantPool)
|
void |
SourceFile.addPoolItems(java.util.Set<Constant.Info> constantPool)
|
void |
LineNumberTable.addPoolItems(java.util.Set<Constant.Info> constantPool)
|
void |
InnerClasses.addPoolItems(java.util.Set<Constant.Info> constantPool)
When this method is called, the attribute must add all items that it needs to the constant pool. |
void |
Exceptions.addPoolItems(java.util.Set<Constant.Info> constantPool)
When this method is called, the attribute must add all items that it needs to the constant pool. |
void |
ConstantValue.addPoolItems(java.util.Set<Constant.Info> constantPool)
|
void |
Code.addPoolItems(java.util.Set<Constant.Info> constantPool)
|
void |
StackMapTable.print(java.io.PrintWriter output,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
void |
SourceFile.print(java.io.PrintWriter output,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
void |
LineNumberTable.print(java.io.PrintWriter output,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
void |
InnerClasses.print(java.io.PrintWriter output,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
void |
Exceptions.print(java.io.PrintWriter output,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
void |
ConstantValue.print(java.io.PrintWriter output,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
void |
Code.print(java.io.PrintWriter output,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
void |
StackMapTable.write(BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
void |
SourceFile.write(BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
void |
LineNumberTable.write(BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
void |
InnerClasses.write(BinaryOutputStream output,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
Write attribute detailing what direct inner classes there are for this class, or what inner class this class is in. |
void |
Exceptions.write(BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
This method requires the attribute to write itself to the binary stream. |
void |
ConstantValue.write(BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
void |
Code.write(BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
void |
LineNumberTable.write(int[] bytecodeOffsets,
BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
void |
Code.BytecodeMapAttribute.write(int[] bytecodeOffsets,
BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
This method requires the attribute to write itself to the binary stream. |
Uses of Constant.Info in jasm.io |
---|
Methods in jasm.io that return Constant.Info | |
---|---|
Constant.Info |
ClassFileReader.getConstant(int index)
Read constant value from this classfile's constant pool. |
Methods in jasm.io with parameters of type Constant.Info | |
---|---|
java.lang.Object |
ClassFileReader.convert(Constant.Info constant)
Convert a constant pool item into a Java constant object (e.g. |
Method parameters in jasm.io with type arguments of type Constant.Info | |
---|---|
protected void |
JasmFileWriter.writeField(ClassFile.Field f,
java.util.HashMap<Constant.Info,java.lang.Integer> poolMap)
|
protected void |
ClassFileWriter.writeField(ClassFile.Field f,
java.util.HashMap<Constant.Info,java.lang.Integer> constantPool)
|
protected void |
ClassFileWriter.writeMethod(ClassFile.Method m,
java.util.HashMap<Constant.Info,java.lang.Integer> constantPool)
|
protected void |
JasmFileWriter.writeMethod(ClassFile clazz,
ClassFile.Method method,
java.util.HashMap<Constant.Info,java.lang.Integer> poolMap)
|
Uses of Constant.Info in jasm.lang |
---|
Subclasses of Constant.Info in jasm.lang | |
---|---|
static class |
Constant.Class
|
static class |
Constant.Double
|
static class |
Constant.Dummy
|
static class |
Constant.FieldRef
|
static class |
Constant.Float
|
static class |
Constant.Integer
|
static class |
Constant.InterfaceMethodRef
|
static class |
Constant.Long
|
static class |
Constant.MethodRef
|
static class |
Constant.NameType
|
static class |
Constant.String
|
static class |
Constant.Utf8
|
Methods in jasm.lang that return Constant.Info | |
---|---|
static Constant.Info |
Constant.fromNumber(java.lang.Number c)
This method creates a CONSTANT_info object from a Number object. |
Methods in jasm.lang that return types with arguments of type Constant.Info | |
---|---|
java.util.ArrayList<Constant.Info> |
ClassFile.constantPool()
This method builds a constant pool for this class file. |
Methods in jasm.lang with parameters of type Constant.Info | |
---|---|
static void |
Constant.addPoolItem(Constant.Info item,
java.util.Set<Constant.Info> constantPool)
Recursively add a CONSTANT_Info object to a constant pool. |
Method parameters in jasm.lang with type arguments of type Constant.Info | |
---|---|
static void |
Constant.addPoolItem(Constant.Info item,
java.util.Set<Constant.Info> constantPool)
Recursively add a CONSTANT_Info object to a constant pool. |
void |
BytecodeAttribute.addPoolItems(java.util.Set<Constant.Info> constantPool)
When this method is called, the attribute must add all items that it needs to the constant pool. |
void |
BytecodeAttribute.Unknown.addPoolItems(java.util.Set<Constant.Info> constantPool)
|
void |
Bytecode.addPoolItems(java.util.Set<Constant.Info> constantPool)
This method adds any constant pool items required by the bytecode to the constantPool. |
void |
Bytecode.LoadConst.addPoolItems(java.util.Set<Constant.Info> constantPool)
|
void |
Bytecode.PutField.addPoolItems(java.util.Set<Constant.Info> constantPool)
|
void |
Bytecode.GetField.addPoolItems(java.util.Set<Constant.Info> constantPool)
|
void |
Bytecode.Invoke.addPoolItems(java.util.Set<Constant.Info> constantPool)
|
void |
Bytecode.New.addPoolItems(java.util.Set<Constant.Info> constantPool)
|
void |
Bytecode.CheckCast.addPoolItems(java.util.Set<Constant.Info> constantPool)
|
void |
Bytecode.InstanceOf.addPoolItems(java.util.Set<Constant.Info> constantPool)
|
void |
BytecodeAttribute.print(java.io.PrintWriter output,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
This method is used to print the contents of the attribute in human-readable form, similar to that produced by "javap". |
void |
BytecodeAttribute.Unknown.print(java.io.PrintWriter output,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
BytecodeAttribute |
BytecodeAttribute.Reader.read(BinaryInputStream input,
java.util.Map<java.lang.Integer,Constant.Info> constantPool)
|
static BytecodeAttribute |
BytecodeAttribute.Fn.read(BinaryInputStream input,
java.util.Map<java.lang.Integer,Constant.Info> constantPool,
java.util.Map<java.lang.String,BytecodeAttribute.Reader> readers)
Read a BytecodeAttribute from an input stream, using the given constant pool and readers map to decode them. |
static java.util.List<BytecodeAttribute> |
BytecodeAttribute.Fn.read(int count,
BinaryInputStream input,
java.util.Map<java.lang.Integer,Constant.Info> constantPool,
java.util.Map<java.lang.String,BytecodeAttribute.Reader> readers)
Read a list of BytecodeAttributes from an input stream, using the given constant pool and readers map to decode them. |
abstract byte[] |
Bytecode.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
Translate this Java bytecode into bytes. |
byte[] |
Bytecode.Store.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Load.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Iinc.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.ArrayLoad.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.ArrayStore.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.LoadConst.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Return.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Label.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Neg.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.BinOp.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.PutField.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.GetField.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Invoke.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Conversion.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Goto.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.If.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Cmp.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.IfCmp.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Switch.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Pop.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Dup.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.DupX1.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.DupX2.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Swap.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.New.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.ArrayLength.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.CheckCast.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.InstanceOf.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Nop.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.Throw.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.MonitorEnter.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Bytecode.MonitorExit.toBytes(int offset,
java.util.Map<java.lang.String,java.lang.Integer> labelOffsets,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
abstract byte[] |
Constant.Info.toBytes(java.util.Map<Constant.Info,java.lang.Integer> constantPool)
Convert this pool item into bytes. |
byte[] |
Constant.Utf8.toBytes(java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Constant.String.toBytes(java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Constant.Integer.toBytes(java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Constant.Long.toBytes(java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Constant.Float.toBytes(java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Constant.Double.toBytes(java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Constant.Class.toBytes(java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Constant.FieldRef.toBytes(java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Constant.MethodRef.toBytes(java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Constant.InterfaceMethodRef.toBytes(java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Constant.NameType.toBytes(java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
byte[] |
Constant.Dummy.toBytes(java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
void |
BytecodeAttribute.write(BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
This method requires the attribute to write itself to the binary stream. |
void |
BytecodeAttribute.Unknown.write(BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |