A B C D E F G H I J L M N O P R S T U V W X 

A

AALOAD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
AASTORE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ACC_ABSTRACT - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ACC_FINAL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ACC_INTERFACE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ACC_NATIVE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ACC_PRIVATE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ACC_PROTECTED - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ACC_PUBLIC - Static variable in interface com.claritysys.jvm.classfile.JVM
Access flags for classes, fields and methods.
ACC_STATIC - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ACC_STRICT - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ACC_SUPER - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ACC_SYNCHRONIZED - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ACC_TRANSIENT - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ACC_VOLATILE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ACCESS_NAMES - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ACONST_NULL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
add(short) - Method in class com.claritysys.jvm.builder.CodeBuilder
Append an opcode that takes no arguments.
add(short, long) - Method in class com.claritysys.jvm.builder.CodeBuilder
Add an xLCONST instruction, with a long parameter.
add(short, double) - Method in class com.claritysys.jvm.builder.CodeBuilder
 
add(short, int) - Method in class com.claritysys.jvm.builder.CodeBuilder
Add an instruction that takes a single byte, short, or int parameter.
add(short, Class) - Method in class com.claritysys.jvm.builder.CodeBuilder
Add an opcode that takes a CONSTANT_Class_info index.
add(short, CpClass) - Method in class com.claritysys.jvm.builder.CodeBuilder
Add an opcode that takes a CONSTANT_Class_info index.
add(short, String) - Method in class com.claritysys.jvm.builder.CodeBuilder
Process an opcode with a single String argument -- obviously no opcodes actually take a String as an argument, so the argument must first be converted into a constant String index, a constant methodref index, or a constant class index.
add(short, String, int) - Method in class com.claritysys.jvm.builder.CodeBuilder
Add a MULTIANEWARRAY instruction, the only instruction with this particular format.
add(short, String, String) - Method in class com.claritysys.jvm.builder.CodeBuilder
Process an opcode that can concievably take two String arguments ...
add(short, Label) - Method in class com.claritysys.jvm.builder.CodeBuilder
Add a branch instruction, to branch to the given Label.
add(short, String, String, Class, Class[]) - Method in class com.claritysys.jvm.builder.CodeBuilder
A convenient form for a methodref based opcode, especially when dealing with Java Method reflection.
add(short, String, String, String) - Method in class com.claritysys.jvm.builder.CodeBuilder
Add an opcode that takes a CpRef (MethodRef) as an argument.
add(short, CfField) - Method in class com.claritysys.jvm.builder.CodeBuilder
Add a field opcode, such as PUTFIELD, GETFIELD, PUTSTATIC, GETSTATIC.
add(short, CfMethod) - Method in class com.claritysys.jvm.builder.CodeBuilder
Add a method opcode such as INVOKEVIRTUAL.
add(short, CpRef) - Method in class com.claritysys.jvm.builder.CodeBuilder
Add a field or method opcode.
add(short, LocalVariable) - Method in class com.claritysys.jvm.builder.CodeBuilder
Add a LOAD/STORE instruction referencing the given local variable.
add(short, LocalVariable, int) - Method in class com.claritysys.jvm.builder.CodeBuilder
Generate an IINC, which takes both a local and an amount.
addCachedType(ClassFile) - Method in class com.claritysys.jvm.builder.ArrayClassLoader
 
addCachedType(String, byte[]) - Method in class com.claritysys.jvm.builder.ArrayClassLoader
 
addClass(Class) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given Class in the CpClass entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addClass(String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given Class in the CpClass entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addClass(CpUtf8) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given String in the Utf8 entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addDouble(double) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given entry in the TAG_DOUBLE entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addField(int, String, String) - Method in class com.claritysys.jvm.classfile.ClassFile
Add a new field to the class.
addField(int, String, Class) - Method in class com.claritysys.jvm.classfile.ClassFile
Add a new field.
addField(int, int, int) - Method in class com.claritysys.jvm.classfile.ClassFile
Add a new field to the class.
addField(int, String, CpClass) - Method in class com.claritysys.jvm.classfile.ClassFile
Add a new object field to the class, having the type of the given CpClass signature.
addFieldRef(String, String, String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given entry in the TAG_FIELDREF entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addFieldRef(CpClass, String, String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given entry in the TAG_FIELDREF entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addFieldRef(int, int, int) - Method in class com.claritysys.jvm.classfile.ConstantPool
Build a methodref from the given class, name, and descriptor indexes.
addFieldRefJL(String, String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Add the given field reference to the pool, or find an existing reference.
addFloat(float) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given entry in the TAG_FLOAT entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addHandler(ExceptionHandler) - Method in class com.claritysys.jvm.classfile.CfMethod
 
addHandler(int, int, int, CpClass) - Method in class com.claritysys.jvm.classfile.CfMethod
 
addIMethodRef(String, String, String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given entry in the TAG_INTERFACE_METHODREF entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addIMethodRef(CpClass, String, String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given entry in the TAG_INTERFACE_METHODREF entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addImport(String) - Method in class com.claritysys.jvm.builder.CodeBuilder
Convenience method to add import to ConstantPool SigConverter.
addImport(String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Add an important for the given class, so the "short" name can be used for method or field references.
addImport(Class) - Method in class com.claritysys.jvm.classfile.ConstantPool
Add an important for the given class, so the "short" name can be used for method or field references.
addImport(String) - Method in class com.claritysys.jvm.classfile.SigConverter
Import the given class, returning its short name.
addInteger(int) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the entry int in the TAG_INTEGER entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addInterface(String) - Method in class com.claritysys.jvm.classfile.ClassFile
Append the given interface to the list implemented by this class.
addInterface(Class) - Method in class com.claritysys.jvm.classfile.ClassFile
Append the given interface to the list implemented by this class.
addJavaClass(String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given Class in the CpClass entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addLine(LineNumber) - Method in class com.claritysys.jvm.classfile.CfMethod
Append the given line number to the end of the linked-list of locals for this line number table.
addLocal(LocalVariable) - Method in class com.claritysys.jvm.builder.CodeBlock
Add a local variable to this block's scope, to be declared in the containing CfMethod once the block is ended.
addLocal(String, String) - Method in class com.claritysys.jvm.builder.CodeBuilder
Declare a local variable within the current code block (within the method if there is no active code block).
addLocal(String) - Method in class com.claritysys.jvm.builder.CodeBuilder
 
addLocal(CpClass) - Method in class com.claritysys.jvm.builder.CodeBuilder
 
addLocal(CpClass, String) - Method in class com.claritysys.jvm.builder.CodeBuilder
 
addLocal(LocalVariable) - Method in class com.claritysys.jvm.classfile.CfMethod
Append the given local to the end of the linked-list of locals for this local variable table.
addLong(long) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given entry in the TAG_LONG entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addMethod(int, String) - Method in class com.claritysys.jvm.classfile.ClassFile
Add a new method to the class.
addMethod(int, String, String) - Method in class com.claritysys.jvm.classfile.ClassFile
Add a new method to the class.
addMethodRef(boolean, String, String, String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given entry in the TAG_METHODREF entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addMethodRef(boolean, CpClass, String, String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Add CpRef method reference to constant pool, or find existing one.
addMethodRef(boolean, CpClass, String) - Method in class com.claritysys.jvm.classfile.ConstantPool
A short form for adding CpRef's for methods.
addMethodRef(CpClass, String, String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given entry in the TAG_METHODREF entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addMethodRef(int, int, int) - Method in class com.claritysys.jvm.classfile.ConstantPool
Build a methodref from the given class, name, and descriptor indexes.
addNameAndType(CpUtf8, CpUtf8) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given entry in the TAG_NAME_AND_TYPE entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addNameAndType(String, String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given entry in the TAG_NAME_AND_TYPE entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addRef(byte, CpClass, CpNameAndType) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given entry in the [tag] entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addString(String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given entry in the TAG_STRING entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addString(CpUtf8) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given entry in the TAG_STRING entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
addUtf8(String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Search for the given String in the Utf8 entries of the hashtable, returning the existing entry if found or adding a new entry if needed.
adjustStack(int) - Method in class com.claritysys.jvm.builder.ByteArray
Adjust the stack pointer, updating maxStack if appropriate.
ALOAD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ALOAD_0 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ALOAD_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ALOAD_2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ALOAD_3 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ANEWARRAY - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ANEWARRAY_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ARETURN - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ArrayClassLoader - Class in com.claritysys.jvm.builder
ClassLoader that loads from a byte[] in memory.
ArrayClassLoader() - Constructor for class com.claritysys.jvm.builder.ArrayClassLoader
 
ArrayClassLoader(ClassLoader) - Constructor for class com.claritysys.jvm.builder.ArrayClassLoader
 
ARRAYLENGTH - Static variable in interface com.claritysys.jvm.classfile.JVM
 
Assertions - Class in com.claritysys.jvm.classfile
Enable / disable assertions.
Assertions() - Constructor for class com.claritysys.jvm.classfile.Assertions
 
assertTrue(boolean, Object) - Static method in class com.claritysys.jvm.classfile.Assertions
 
ASTORE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ASTORE_0 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ASTORE_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ASTORE_2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ASTORE_3 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ATHROW - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ATTR_CODE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ATTR_CONSTANT_VALUE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ATTR_DEPRECATED - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ATTR_EXCEPTIONS - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ATTR_LINE_NUMBER_TABLE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ATTR_LOCAL_VARIABLE_TABLE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ATTR_SOURCE_FILE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ATTR_SYNTHETIC - Static variable in interface com.claritysys.jvm.classfile.JVM
 
Attribute - Class in com.claritysys.jvm.classfile
An attribute list within a class, field, method, or code attribute.
Attribute(int, int, byte[]) - Constructor for class com.claritysys.jvm.classfile.Attribute
Create a new attribute.
AttributeHandler - Interface in com.claritysys.jvm.classfile
A callback interface, to intercept attributes as they are being read.

B

BALOAD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
BASTORE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
BcUtils - Class in com.claritysys.jvm.builder
Utility methods for generating common methods/operations into generated ClassFiles.
BcUtils() - Constructor for class com.claritysys.jvm.builder.BcUtils
 
BIPUSH - Static variable in interface com.claritysys.jvm.classfile.JVM
 
blockCatch(LocalVariable) - Method in class com.claritysys.jvm.builder.CodeBuilder
Start a catch block, for catching the exception with the same type as the given local variable and storing it automatically in that variable (adds an ASTORE automatically).
blockCatch(String) - Method in class com.claritysys.jvm.builder.CodeBuilder
Start a catch block to catch the given type.
blockElse() - Method in class com.claritysys.jvm.builder.CodeBuilder
Start an else block.
blockEnd() - Method in class com.claritysys.jvm.builder.CodeBuilder
End the current block, be it a generic block, and if/else block, or a try/catch/finally block.
blockFinally() - Method in class com.claritysys.jvm.builder.CodeBuilder
Start the finally clause.
blockIf(short) - Method in class com.claritysys.jvm.builder.CodeBuilder
Start an If block, executing the THEN block if the given opcode fails to branch.
blockIfEQ() - Method in class com.claritysys.jvm.builder.CodeBuilder
Start an If block, executing the THEN block if the stack operand is equal to zero.
blockIfEQ(int) - Method in class com.claritysys.jvm.builder.CodeBuilder
Start an If block, executing the THEN block if the top two primitive operands are equal in value (of the given type).
blockIfFalse() - Method in class com.claritysys.jvm.builder.CodeBuilder
Start an If block, executing the THEN block if the stack operand is equal to zero (aka "false").
blockIfNE() - Method in class com.claritysys.jvm.builder.CodeBuilder
Start an If block, executing the THEN block if the stack operand is not equal to zero.
blockIfNotNull() - Method in class com.claritysys.jvm.builder.CodeBuilder
Start an If block, executing the THEN block if the stack operand is not null.
blockIfNull() - Method in class com.claritysys.jvm.builder.CodeBuilder
Start an If block, executing the THEN block if the stack operand is null.
blockIfObjectsEQ() - Method in class com.claritysys.jvm.builder.CodeBuilder
Start an If block, executing the THEN block block if the two top stack operands are equivalent object references (IF_ACMPEQ).
blockIfObjectsNE() - Method in class com.claritysys.jvm.builder.CodeBuilder
Start an If block, executing the THEN block block if the two top stack operands are different object references (IF_ACMPNE).
blockIfTrue() - Method in class com.claritysys.jvm.builder.CodeBuilder
Start an If block, executing the THEN block if the stack operand is not equal to zero (aka "true").
blockStart() - Method in class com.claritysys.jvm.builder.CodeBuilder
Start a generic (ie, "scope") block.
blockTry() - Method in class com.claritysys.jvm.builder.CodeBuilder
Begin a try/catch/finally block.
BRANCH - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
 
BRANCH_W - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
 
BREAKPOINT - Static variable in interface com.claritysys.jvm.classfile.JVM
Non-legal opcodes, may be used by JVM internally.
ByteArray - Class in com.claritysys.jvm.builder
ByteArray is like java.util.ArrayList, except that its contents are primitive bytes.
ByteArray() - Constructor for class com.claritysys.jvm.builder.ByteArray
Create a new byte array with the default capacity of 256.
ByteArray(int) - Constructor for class com.claritysys.jvm.builder.ByteArray
Create a new byte array with the given initialize capacity.

C

CALOAD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
CASTORE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
CatchBlock - Class in com.claritysys.jvm.builder
A Catch block.
CatchBlock(CodeBuilder, TryBlock, CpClass) - Constructor for class com.claritysys.jvm.builder.CatchBlock
 
CfEntry - Class in com.claritysys.jvm.classfile
An entry of a classfile, i.e.
CfEntry() - Constructor for class com.claritysys.jvm.classfile.CfEntry
Create a new entry with no initial value for the access flags.
CfEntry(int) - Constructor for class com.claritysys.jvm.classfile.CfEntry
Create a new entry with the given access flags.
CfField - Class in com.claritysys.jvm.classfile
A field declared within a ClassFile.
CfField(ClassFile) - Constructor for class com.claritysys.jvm.classfile.CfField
 
CfFieldOrMethod - Class in com.claritysys.jvm.classfile
 
CfFieldOrMethod(ClassFile) - Constructor for class com.claritysys.jvm.classfile.CfFieldOrMethod
Create a new field or method belonging to the given Classfile.
CfMethod - Class in com.claritysys.jvm.classfile
A method declared within a ClassFile.
CfMethod(ClassFile) - Constructor for class com.claritysys.jvm.classfile.CfMethod
 
CHECKCAST - Static variable in interface com.claritysys.jvm.classfile.JVM
 
CHECKCAST_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ClassFile - Class in com.claritysys.jvm.classfile
ClassFile represents a Java class file (as stored on disk), as per the Java Virtual Machine Specification, 2nd Edition, and exposes the attributes of a classfile in convenient Java data formats (e.g., int as opposed to U2).
ClassFile(String, String, String) - Constructor for class com.claritysys.jvm.classfile.ClassFile
Create a new ClassFile.
ClassFile(ConstantPool, String, String, String) - Constructor for class com.claritysys.jvm.classfile.ClassFile
Create a new ClassFile, using the given ConstantPool as a template.
ClassFileFormatException - Exception in com.claritysys.jvm.classfile
An exception that indicates an unrecoverable error ocurred while reading a class file from a stream.
ClassFileFormatException() - Constructor for exception com.claritysys.jvm.classfile.ClassFileFormatException
Constructs a ClassFileFormatException with no specified detail message.
ClassFileFormatException(String) - Constructor for exception com.claritysys.jvm.classfile.ClassFileFormatException
Constructs a ClassFileFormatException with the specified detail message.
clearEndLabel() - Method in class com.claritysys.jvm.builder.CodeBlock
Clear the end label (set it to null).
clone() - Method in class com.claritysys.jvm.classfile.CpEntry
Clone the entry (shallow copy).
code - Variable in class com.claritysys.jvm.builder.CodeBlock
The byte[] being written to.
CodeBlock - Class in com.claritysys.jvm.builder
Represents a code block, which defines a scope for local variables.
CodeBlock(CodeBuilder) - Constructor for class com.claritysys.jvm.builder.CodeBlock
Create a new CodeBlock.
codeBuilder - Variable in class com.claritysys.jvm.builder.CodeBlock
The code builder.
CodeBuilder - Class in com.claritysys.jvm.builder
Factory for building AttrCode objects for CfMethods, eg for generating bytecode.
CodeBuilder(CfMethod) - Constructor for class com.claritysys.jvm.builder.CodeBuilder
Create a new builder attached to the given method.
CodeIterator - Class in com.claritysys.jvm.disassembler
 
CodeIterator(Disassembler, CfMethod, int) - Constructor for class com.claritysys.jvm.disassembler.CodeIterator
 
CodeIterator.LineMarker - Class in com.claritysys.jvm.disassembler
 
CodeIterator.LineMarker() - Constructor for class com.claritysys.jvm.disassembler.CodeIterator.LineMarker
 
com.claritysys.jvm.builder - package com.claritysys.jvm.builder
 
com.claritysys.jvm.classfile - package com.claritysys.jvm.classfile
 
com.claritysys.jvm.disassembler - package com.claritysys.jvm.disassembler
 
com.claritysys.jvm.sample - package com.claritysys.jvm.sample
 
compare(Object, Object) - Method in class com.claritysys.jvm.disassembler.CodeIterator.LineMarker
 
computeHash() - Method in class com.claritysys.jvm.classfile.CpClass
 
computeHash() - Method in class com.claritysys.jvm.classfile.CpEntry
Signal the entry to recompute (and store) its hashcode.
computeHash() - Method in class com.claritysys.jvm.classfile.CpNameAndType
 
computeHash() - Method in class com.claritysys.jvm.classfile.CpRef
 
computeHash() - Method in class com.claritysys.jvm.classfile.CpString
 
computeHash() - Method in class com.claritysys.jvm.classfile.CpUtf8
 
computeHash() - Method in class com.claritysys.jvm.classfile.CpValue1
 
computeHash() - Method in class com.claritysys.jvm.classfile.CpValue2
 
CONST_I1 - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
 
CONST_I2 - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
 
CONST_INDEX_2U2 - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
 
CONST_INDEX_U1 - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
 
CONST_INDEX_U2 - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
 
CONST_U1 - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
 
CONSTANT_Class - Static variable in interface com.claritysys.jvm.classfile.JVM
 
CONSTANT_Double - Static variable in interface com.claritysys.jvm.classfile.JVM
 
CONSTANT_Fieldref - Static variable in interface com.claritysys.jvm.classfile.JVM
 
CONSTANT_Float - Static variable in interface com.claritysys.jvm.classfile.JVM
 
CONSTANT_Integer - Static variable in interface com.claritysys.jvm.classfile.JVM
 
CONSTANT_InterfaceMethodref - Static variable in interface com.claritysys.jvm.classfile.JVM
 
CONSTANT_Long - Static variable in interface com.claritysys.jvm.classfile.JVM
 
CONSTANT_Methodref - Static variable in interface com.claritysys.jvm.classfile.JVM
 
CONSTANT_NameAndType - Static variable in interface com.claritysys.jvm.classfile.JVM
 
CONSTANT_NAMES - Static variable in interface com.claritysys.jvm.classfile.JVM
 
CONSTANT_String - Static variable in interface com.claritysys.jvm.classfile.JVM
 
CONSTANT_Utf8 - Static variable in interface com.claritysys.jvm.classfile.JVM
Tags in constant pool to denote type of constant.
ConstantPool - Class in com.claritysys.jvm.classfile
Models the java classfile constant pool, and provides the ability to dynamically construct or modify a constant pool.
ConstantPool() - Constructor for class com.claritysys.jvm.classfile.ConstantPool
Create a new, empty constant pool.
ConstantPool(boolean) - Constructor for class com.claritysys.jvm.classfile.ConstantPool
Create a new, empty constant pool, with the default size, and automatically add all CpClass entries to the SigConverter import list.
ConstantPool(int) - Constructor for class com.claritysys.jvm.classfile.ConstantPool
Create a new, empty constant pool with the given initial capacity.
ConstantPool(ConstantPool) - Constructor for class com.claritysys.jvm.classfile.ConstantPool
Create a new pool from the given template pool.
CONSTRUCTOR_NAME - Static variable in interface com.claritysys.jvm.classfile.JVM
The name of every constructor method in a class, also called "instance initialization method".
CONSUME_STACK - Static variable in interface com.claritysys.jvm.classfile.JVM
Number of words consumed on operand stack by instructions.
CpClass - Class in com.claritysys.jvm.classfile
A CONSTANT_Class entry in the constant pool.
CpClass(ConstantPool) - Constructor for class com.claritysys.jvm.classfile.CpClass
 
CpEntry - Class in com.claritysys.jvm.classfile
An entry in the constant pool for a ClassFile.
CpEntry(ConstantPool, byte, int) - Constructor for class com.claritysys.jvm.classfile.CpEntry
Create a new CpEntry in the given pool, with the given hashcode.
CpNameAndType - Class in com.claritysys.jvm.classfile
A CONSTANT_NameAndType entry in the constant pool.
CpRef - Class in com.claritysys.jvm.classfile
A CONSTANT_{Field,Method,InterfaceMethod}Ref entry in the constant pool.
CpString - Class in com.claritysys.jvm.classfile
A CONSTANT_String entry in the constant pool.
CpUtf8 - Class in com.claritysys.jvm.classfile
Constant UTF8 constant-pool entry.
CpUtf8(ConstantPool) - Constructor for class com.claritysys.jvm.classfile.CpUtf8
Create a new entry which will be read eventually from a stream.
CpValue1 - Class in com.claritysys.jvm.classfile
A CONSTANT_Integer or CONSTANT_Float entry in the constant pool.
CpValue2 - Class in com.claritysys.jvm.classfile
A CONSTANT_Long or CONSTANT_Double entry in the constant pool.
createLabel() - Method in class com.claritysys.jvm.builder.CodeBuilder
Create a new Label to be used in branch/goto instructions.
createLocalsFromSignature() - Method in class com.claritysys.jvm.classfile.CfMethod
Based on the method signature, automatically build a set of matching LocalVariables.

D

D2F - Static variable in interface com.claritysys.jvm.classfile.JVM
 
D2I - Static variable in interface com.claritysys.jvm.classfile.JVM
 
D2L - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DADD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DALOAD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DASTORE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DCMPG - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DCMPL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DCONST_0 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DCONST_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DDIV - Static variable in interface com.claritysys.jvm.classfile.JVM
 
define() - Method in class com.claritysys.jvm.builder.Label
Define the label to be equal to the current PC.
defineLabel() - Method in class com.claritysys.jvm.builder.CodeBuilder
Create and define a new Label to be used in branch/goto instructions.
defineLocals(LocalVariable, int) - Method in class com.claritysys.jvm.builder.CodeBuilder
Define the given linked-list of local variables as ending on the given PC.
disassemble(String) - Method in class com.claritysys.jvm.builder.ArrayClassLoader
Disassemble the given classname to the users current directory.
disassemble() - Method in class com.claritysys.jvm.disassembler.Disassembler
Do the disassembly.
Disassembler - Class in com.claritysys.jvm.disassembler
JASM Java Bytecode Disassembler Stuff To Do - Proper conversion of WIDE args - Exceptions need better labels/block marking.
Disassembler(ClassFile, String) - Constructor for class com.claritysys.jvm.disassembler.Disassembler
Create a new Disassembler for given class.
Disassembler(ClassFile, Writer) - Constructor for class com.claritysys.jvm.disassembler.Disassembler
 
DLOAD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DLOAD_0 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DLOAD_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DLOAD_2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DLOAD_3 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DMUL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DNEG - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DREM - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DRETURN - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DSTORE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DSTORE_0 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DSTORE_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DSTORE_2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DSTORE_3 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DSUB - Static variable in interface com.claritysys.jvm.classfile.JVM
 
dumpAliases() - Method in class com.claritysys.jvm.classfile.SigConverter
Dump imports to System.out.
DUP - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DUP2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DUP2_X1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DUP2_X2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DUP_X1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
DUP_X2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 

E

ElseBlock - Class in com.claritysys.jvm.builder
An Else block.
ElseBlock(CodeBuilder) - Constructor for class com.claritysys.jvm.builder.ElseBlock
 
end() - Method in class com.claritysys.jvm.builder.CatchBlock
 
end() - Method in class com.claritysys.jvm.builder.CodeBlock
End the block, noting the endPC and defining any labels specified to be defined at block end.
endLabel - Variable in class com.claritysys.jvm.builder.CodeBlock
Linked list of labels to be defined at blockEnd().
endPC - Variable in class com.claritysys.jvm.builder.CodeBlock
The PC where the block was ended.
endPc - Variable in class com.claritysys.jvm.classfile.ExceptionHandler
VM2E "u2 end_pc".
exceptionClassIndex - Variable in class com.claritysys.jvm.classfile.ExceptionHandler
VM2E "u2 catch_type".
ExceptionHandler - Class in com.claritysys.jvm.classfile
 
ExceptionHandler(CfMethod, DataInputStream) - Constructor for class com.claritysys.jvm.classfile.ExceptionHandler
 
ExceptionHandler(CfMethod, int, int, int, int) - Constructor for class com.claritysys.jvm.classfile.ExceptionHandler
 
extractMarkers() - Method in class com.claritysys.jvm.disassembler.CodeIterator
 

F

F2D - Static variable in interface com.claritysys.jvm.classfile.JVM
 
F2I - Static variable in interface com.claritysys.jvm.classfile.JVM
 
F2L - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FADD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FALOAD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FASTORE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FCMPG - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FCMPL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FCONST_0 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FCONST_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FCONST_2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FDIV - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FIELD - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
 
findClass(String) - Method in class com.claritysys.jvm.builder.ArrayClassLoader
Invoke by parent loader in response to loadClass(String name).
FLOAD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FLOAD_0 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FLOAD_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FLOAD_2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FLOAD_3 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
flush() - Method in class com.claritysys.jvm.builder.CodeBuilder
Update the attached CfMethod's AttrCode based on the current contents of the bytecode, local variables, exceptions, etc.
FMUL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FNEG - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FREM - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FRETURN - Static variable in interface com.claritysys.jvm.classfile.JVM
 
fromArray(byte[]) - Static method in class com.claritysys.jvm.classfile.ClassFile
Construct a ClassFile from a byte[].
fromFile(String) - Static method in class com.claritysys.jvm.classfile.ClassFile
Read a class file from a local file path.
fromStream(DataInputStream) - Static method in class com.claritysys.jvm.classfile.ConstantPool
Create a new ConstantPool by reading it from an input stream in the ClassFile format.
FSTORE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FSTORE_0 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FSTORE_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FSTORE_2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FSTORE_3 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
FSUB - Static variable in interface com.claritysys.jvm.classfile.JVM
 

G

getAccessFlags() - Method in class com.claritysys.jvm.classfile.CfEntry
Return the access flags, as an int.
getArgPtr() - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
getArgTypes(String) - Method in class com.claritysys.jvm.classfile.SigConverter
Parse the arg types of the method signature.
getAttributeCount() - Method in class com.claritysys.jvm.classfile.CfEntry
Count the number of Attributes in getAttributes.
getAttributes() - Method in class com.claritysys.jvm.classfile.CfEntry
Return the optional linked list of unknown attributes.
getByteArray() - Method in class com.claritysys.jvm.builder.CodeBuilder
Returns the ByteArray that bytecode is written to.
getBytes() - Method in class com.claritysys.jvm.builder.ByteArray
Get the underlying byte[] -- this does not create a new byte[], it returns the actual byte[] being used.
getBytes() - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
getClassCp() - Method in class com.claritysys.jvm.classfile.ClassFile
 
getClassFile() - Method in class com.claritysys.jvm.classfile.CfFieldOrMethod
 
getClassIndex() - Method in class com.claritysys.jvm.classfile.ClassFile
Return the index into the constant pool that holds the name of the class.
getClassName() - Method in class com.claritysys.jvm.classfile.ClassFile
Return the fully qualify VM formatted name of this class, eg the string as defined in the constant pool which defines the full name of this class.
getCode() - Method in class com.claritysys.jvm.builder.ByteArray
Get the resulting byte[] -- this creates a NEW byte[] with only the contents!
getCode() - Method in class com.claritysys.jvm.classfile.CfMethod
 
getCodeAttributes() - Method in class com.claritysys.jvm.classfile.CfMethod
 
getCodeBuilder() - Method in class com.claritysys.jvm.classfile.CfMethod
Return a CodeBuilder for constructing the method code attribute.
getCodeBuilder(CfMethod) - Method in class com.claritysys.jvm.classfile.ClassFile
Initialize and return a CodeBuilder for constructing the bytecode of the given method.
getConstantPool() - Method in class com.claritysys.jvm.classfile.CfFieldOrMethod
 
getConstantPool() - Method in class com.claritysys.jvm.classfile.ClassFile
 
getConstantValue() - Method in class com.claritysys.jvm.classfile.CfField
 
getCount() - Method in class com.claritysys.jvm.classfile.ConstantPool
Return count of entries in pool.
getCpClass() - Method in class com.claritysys.jvm.classfile.CpRef
 
getDescriptor() - Method in class com.claritysys.jvm.classfile.LocalVariable
 
getDescriptorIndex() - Method in class com.claritysys.jvm.classfile.CfFieldOrMethod
 
getEndLabel() - Method in class com.claritysys.jvm.builder.CodeBlock
Return a label that will be defined when the block ends.
getEndPC() - Method in class com.claritysys.jvm.builder.CodeBlock
 
getEndPc() - Method in class com.claritysys.jvm.classfile.ExceptionHandler
 
getError() - Method in class com.claritysys.jvm.disassembler.IndentingWriter
 
getExceptionClassIndex() - Method in class com.claritysys.jvm.classfile.ExceptionHandler
 
getExceptionCps() - Method in class com.claritysys.jvm.classfile.CfMethod
 
getField(String) - Method in class com.claritysys.jvm.classfile.ClassFile
Lookup a field in this classfile by name.
GETFIELD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
GETFIELD2_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
GETFIELD_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
GETFIELD_QUICK_W - Static variable in interface com.claritysys.jvm.classfile.JVM
 
getFieldCount() - Method in class com.claritysys.jvm.classfile.ClassFile
 
getFields() - Method in class com.claritysys.jvm.classfile.ClassFile
 
getFormattedType(String) - Method in class com.claritysys.jvm.disassembler.Disassembler
TypeFormatter.getFormattedType
getFormattedType(String) - Method in interface com.claritysys.jvm.disassembler.Signature.TypeFormatter
 
getFullName(String) - Method in class com.claritysys.jvm.classfile.SigConverter
Return the full name for the given short name.
getHandlerCount() - Method in class com.claritysys.jvm.classfile.CfMethod
 
getHandlerPc() - Method in class com.claritysys.jvm.classfile.ExceptionHandler
 
getHandlers() - Method in class com.claritysys.jvm.classfile.CfMethod
 
getI2(int) - Method in class com.claritysys.jvm.builder.ByteArray
Get a 16-bit short from the given offset.
getIndex() - Method in class com.claritysys.jvm.classfile.CpEntry
Get this entry's index in the constant pool.
getIndex() - Method in class com.claritysys.jvm.classfile.LocalVariable
 
getInfo() - Method in class com.claritysys.jvm.classfile.Attribute
 
getInterfaceNames() - Method in class com.claritysys.jvm.classfile.ClassFile
 
getInterfaces() - Method in class com.claritysys.jvm.classfile.ClassFile
 
getLastHandler() - Method in class com.claritysys.jvm.classfile.CfMethod
 
getLastLine() - Method in class com.claritysys.jvm.classfile.CfMethod
 
getLastLocal() - Method in class com.claritysys.jvm.classfile.CfMethod
 
getLength() - Method in class com.claritysys.jvm.classfile.Attribute
 
getLength() - Method in class com.claritysys.jvm.classfile.LocalVariable
 
getLine() - Method in class com.claritysys.jvm.classfile.LineNumber
 
getLineCount() - Method in class com.claritysys.jvm.classfile.CfMethod
 
getLines() - Method in class com.claritysys.jvm.classfile.CfMethod
 
getLocal(int) - Method in class com.claritysys.jvm.builder.CodeBuilder
Return the LocalVariable currently occupying the requested local variable index.
getLocal(int) - Method in class com.claritysys.jvm.classfile.CfMethod
Return the first found local variable that occupies the given index.
getLocalName(CfMethod, int) - Static method in class com.claritysys.jvm.disassembler.CodeIterator
 
getLocalName(int) - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
getLocals() - Method in class com.claritysys.jvm.classfile.CfMethod
 
getLocalsCount() - Method in class com.claritysys.jvm.classfile.CfMethod
 
getMajor() - Method in class com.claritysys.jvm.classfile.ClassFile
 
getMarker() - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
getMarkerAtOffset(int) - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
getMarkerAtPC(int) - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
getMaxLocals() - Method in class com.claritysys.jvm.builder.CodeBuilder
 
getMaxLocals() - Method in class com.claritysys.jvm.classfile.CfMethod
Max local variable index as per class file specification.
getMaxStack() - Method in class com.claritysys.jvm.builder.ByteArray
Return max stack size -- note that ByteArray cannot entirely compute this on its own using the opcode tables, for fields and methods the CodeBuilder must manually adjust the stack.
getMaxStack() - Method in class com.claritysys.jvm.builder.CodeBuilder
 
getMaxStack() - Method in class com.claritysys.jvm.classfile.CfMethod
 
getMethod() - Method in class com.claritysys.jvm.builder.CodeBlock
Get the method builder.
getMethod() - Method in class com.claritysys.jvm.builder.CodeBuilder
 
getMethod(String, String) - Method in class com.claritysys.jvm.classfile.ClassFile
Lookup a method by name and signature.
getMethod() - Method in class com.claritysys.jvm.classfile.LocalVariable
 
getMethodCount() - Method in class com.claritysys.jvm.classfile.ClassFile
 
getMethodReturnType(String) - Static method in class com.claritysys.jvm.classfile.Utils
Determine the return type of the method, given its VM signature.
getMethods() - Method in class com.claritysys.jvm.classfile.ClassFile
 
getMethodStackWords(String) - Static method in class com.claritysys.jvm.classfile.Utils
Count the number of stack words needed to hold the parameters for the given method signature.
getMinor() - Method in class com.claritysys.jvm.classfile.ClassFile
 
getName() - Method in class com.claritysys.jvm.classfile.CfFieldOrMethod
 
getName() - Method in class com.claritysys.jvm.classfile.CpClass
 
getName() - Method in class com.claritysys.jvm.classfile.CpNameAndType
 
getName() - Method in class com.claritysys.jvm.classfile.LocalVariable
 
getNameAndType() - Method in class com.claritysys.jvm.classfile.CpRef
 
getNameIndex() - Method in class com.claritysys.jvm.classfile.Attribute
 
getNameIndex() - Method in class com.claritysys.jvm.classfile.CfFieldOrMethod
 
getNext() - Method in class com.claritysys.jvm.classfile.Attribute
 
getNext() - Method in class com.claritysys.jvm.classfile.CfField
 
getNext() - Method in class com.claritysys.jvm.classfile.CfMethod
 
getNext() - Method in class com.claritysys.jvm.classfile.ExceptionHandler
 
getNext() - Method in class com.claritysys.jvm.classfile.LineNumber
 
getNext() - Method in class com.claritysys.jvm.classfile.LocalVariable
 
getNextMarker() - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
getNonStaticStackSize() - Method in class com.claritysys.jvm.classfile.CpRef
Get the number of stack parameters specified by the signature.
getOffset(boolean) - Method in class com.claritysys.jvm.builder.Label
Return the offset to write to the byte[] from the given offset, depending on whether a short or int offset is needed, in order to branch to this label from the current PC location.
getOpCount() - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
getPackage() - Method in class com.claritysys.jvm.classfile.ClassFile
Return the package portion of the class name in VM format (with "/" instead of ".").
getParameter(int) - Method in class com.claritysys.jvm.disassembler.Signature
Get the nth parameter.
getParameterCount(String) - Static method in class com.claritysys.jvm.classfile.Utils
Count how many parameters there are in the given method signature.
getParameterCount() - Method in class com.claritysys.jvm.disassembler.Signature
How many parameters does the method take?
getParameters(String) - Static method in class com.claritysys.jvm.classfile.Utils
Return an array of strings representing the individual parameters of the given VM-formatted method signature.
getPC() - Method in class com.claritysys.jvm.builder.ByteArray
Allow us to think of the size as the Program Counter.
getPc() - Method in class com.claritysys.jvm.classfile.LineNumber
 
getPc() - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
getPoolEntry(int) - Method in class com.claritysys.jvm.classfile.ConstantPool
Get the index'th entry in pool.
getRef() - Method in class com.claritysys.jvm.classfile.CfField
Return a Cp(Method)Ref for invoking this method.
getRef() - Method in class com.claritysys.jvm.classfile.CfMethod
Return a Cp(Method)Ref for invoking this method.
getReturnType() - Method in class com.claritysys.jvm.classfile.CfMethod
Return the return type of this method as one of the JVM.T_XXX constants.
getReturnType(String) - Method in class com.claritysys.jvm.classfile.SigConverter
Parse the return type of the method signature.
getSigConverter() - Method in class com.claritysys.jvm.classfile.ConstantPool
Get the (optional) SigConverter for converting from Java-friendly syntax to VM syntax.
getSignature() - Method in class com.claritysys.jvm.classfile.CfFieldOrMethod
 
getSize() - Method in class com.claritysys.jvm.builder.ByteArray
Return the current size.
getSourcefile() - Method in class com.claritysys.jvm.classfile.ClassFile
Return the source file from the SourceFile attribute.
getSourcefileCp() - Method in class com.claritysys.jvm.classfile.ClassFile
Return the sourcefile name index, a CpUtf8 index.
getStackSize() - Method in class com.claritysys.jvm.classfile.CpRef
Return the amount of stack size in words needed to process this field or method, eg If its a field, this returns 2 if its a long or double, otherwise 1.
getStackWords(String) - Static method in class com.claritysys.jvm.classfile.Utils
 
getStackWords(int) - Static method in class com.claritysys.jvm.classfile.Utils
 
getStartPC() - Method in class com.claritysys.jvm.builder.CodeBlock
 
getStartPc() - Method in class com.claritysys.jvm.classfile.ExceptionHandler
 
getStartPc() - Method in class com.claritysys.jvm.classfile.LocalVariable
 
GETSTATIC - Static variable in interface com.claritysys.jvm.classfile.JVM
 
GETSTATIC2_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
GETSTATIC_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
getString() - Method in class com.claritysys.jvm.classfile.CpString
Method getString
getString() - Method in class com.claritysys.jvm.classfile.CpUtf8
 
getStringName() - Method in class com.claritysys.jvm.classfile.CpClass
 
getSuperclassCp() - Method in class com.claritysys.jvm.classfile.ClassFile
 
getSuperclassIndex() - Method in class com.claritysys.jvm.classfile.ClassFile
 
getSuperclassName() - Method in class com.claritysys.jvm.classfile.ClassFile
 
getSurroundingBlock() - Method in class com.claritysys.jvm.builder.CodeBlock
Return the surrounding block.
getTag() - Method in class com.claritysys.jvm.classfile.CpEntry
Return the type of entry, one of the TAG_XXX constants, as specified in [vmspec2 4.4].
getTotalSize(Attribute) - Static method in class com.claritysys.jvm.classfile.Attribute
Compute the total size of the attributes, including the 6 bytes of tag/length for each, plus the sum of the lengths.
getTryBlock() - Method in class com.claritysys.jvm.builder.CatchBlock
 
getType() - Method in class com.claritysys.jvm.classfile.CpNameAndType
 
getType() - Method in class com.claritysys.jvm.classfile.LocalVariable
 
getType(String) - Method in class com.claritysys.jvm.classfile.SigConverter
Return the VM type for the given Java-friendly type.
getType() - Method in class com.claritysys.jvm.disassembler.Signature
What is the field type or method return type?
getUtf8AsString(int) - Method in class com.claritysys.jvm.classfile.ConstantPool
Get the index'th entry in the pool, cast it to a CpUtf8, and return its String value.
getValue() - Method in class com.claritysys.jvm.classfile.CpValue1
 
getValue() - Method in class com.claritysys.jvm.classfile.CpValue2
Method getValue
GOTO - Static variable in interface com.claritysys.jvm.classfile.JVM
 
GOTO_W - Static variable in interface com.claritysys.jvm.classfile.JVM
 

H

handleAttribute(DataInputStream, String, int) - Method in interface com.claritysys.jvm.classfile.AttributeHandler
Process the given attribute.
handleAttribute(DataInputStream, String, int) - Method in class com.claritysys.jvm.classfile.CfField
For fields we must recognize: ConstantValue, Synthetic, Deprecated.
handleAttribute(DataInputStream, String, int) - Method in class com.claritysys.jvm.classfile.CfMethod
For methods we must recognize: Code, Exceptions, Synthetic, Deprecated.
handleAttribute(DataInputStream, String, int) - Method in class com.claritysys.jvm.classfile.ClassFile
Process an attribute, returning true if we handled it, false otherwise.
handlerPc - Variable in class com.claritysys.jvm.classfile.ExceptionHandler
 
hasError() - Method in class com.claritysys.jvm.disassembler.IndentingWriter
 
hasFixups() - Method in class com.claritysys.jvm.builder.Label
Returns true if there are unresolved references to this label.
hashCode() - Method in class com.claritysys.jvm.classfile.CpEntry
Return the hash code of this entry.
hasMore() - Method in class com.claritysys.jvm.disassembler.Signature
Return true if there is more signature to parse.
hasNext() - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
headVar - Variable in class com.claritysys.jvm.builder.CodeBlock
Linked list of scoped variables.

I

I2B - Static variable in interface com.claritysys.jvm.classfile.JVM
 
I2C - Static variable in interface com.claritysys.jvm.classfile.JVM
 
I2D - Static variable in interface com.claritysys.jvm.classfile.JVM
 
I2F - Static variable in interface com.claritysys.jvm.classfile.JVM
 
I2L - Static variable in interface com.claritysys.jvm.classfile.JVM
 
I2S - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IADD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IALOAD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IAND - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IASTORE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ICONST_0 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ICONST_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ICONST_2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ICONST_3 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ICONST_4 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ICONST_5 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ICONST_M1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IDIV - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IF_ACMPEQ - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IF_ACMPNE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IF_ICMPEQ - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IF_ICMPGE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IF_ICMPGT - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IF_ICMPLE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IF_ICMPLT - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IF_ICMPNE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IfBlock - Class in com.claritysys.jvm.builder
An If block.
IfBlock(CodeBuilder) - Constructor for class com.claritysys.jvm.builder.IfBlock
 
IFEQ - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IFGE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IFGT - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IFLE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IFLT - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IFNE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IFNONNULL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IFNULL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IGNORE - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
 
IINC - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ILLEGAL_OPCODE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ILLEGAL_TYPE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ILOAD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ILOAD_0 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ILOAD_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ILOAD_2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ILOAD_3 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IMPDEP1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IMPDEP2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IMUL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
indent(int) - Method in class com.claritysys.jvm.disassembler.IndentingWriter
Change the indent level by the specified amount.
IndentingWriter - Class in com.claritysys.jvm.disassembler
 
IndentingWriter(Writer) - Constructor for class com.claritysys.jvm.disassembler.IndentingWriter
Create a new indenting writer to write to the given PrintWriter.
INEG - Static variable in interface com.claritysys.jvm.classfile.JVM
 
init(CfMethod) - Method in class com.claritysys.jvm.builder.CodeBuilder
Reinitialize this builder with the given method builder.
INSTANCEOF - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INSTANCEOF_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INT2BYTE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INT2CHAR - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INT2SHORT - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INTERFACES_IMPLEMENTED_BY_ARRAYS - Static variable in interface com.claritysys.jvm.classfile.JVM
The names of the interfaces implemented by arrays
INVOKEINTERFACE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INVOKEINTERFACE_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INVOKENONVIRTUAL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INVOKENONVIRTUAL_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INVOKESPECIAL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INVOKESTATIC - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INVOKESTATIC_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INVOKESUPER_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INVOKEVIRTUAL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INVOKEVIRTUAL_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INVOKEVIRTUAL_QUICK_W - Static variable in interface com.claritysys.jvm.classfile.JVM
 
INVOKEVIRTUALOBJECT_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IOR - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IREM - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IRETURN - Static variable in interface com.claritysys.jvm.classfile.JVM
 
isAbstract() - Method in class com.claritysys.jvm.classfile.CfEntry
Return whether the ACC_ABSTRACT access flag is set.
isAutoImport() - Method in class com.claritysys.jvm.classfile.ConstantPool
Return whether auto import of class names is enabled.
isDefined() - Method in class com.claritysys.jvm.builder.Label
Return true if the label has already been defined.
isDeprecated() - Method in class com.claritysys.jvm.classfile.CfEntry
Return whether the member is deprecated.
isFinal() - Method in class com.claritysys.jvm.classfile.CfEntry
Return whether the ACC_FINAL access flag is set.
ISHL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ISHR - Static variable in interface com.claritysys.jvm.classfile.JVM
 
isInterface() - Method in class com.claritysys.jvm.classfile.CfEntry
Return whether the ACC_INTERFACE access flag is set.
isLabel - Variable in class com.claritysys.jvm.disassembler.CodeIterator.LineMarker
 
isLocked() - Method in class com.claritysys.jvm.classfile.ConstantPool
Return whether this pool has been 'locked' to any new entries.
isMethod() - Method in class com.claritysys.jvm.disassembler.Signature
Is it a method?
isNative() - Method in class com.claritysys.jvm.classfile.CfEntry
Return whether the ACC_NATIVE access flag is set.
isPrivate() - Method in class com.claritysys.jvm.classfile.CfEntry
Return whether the ACC_PRIVATE flag is set.
isProtected() - Method in class com.claritysys.jvm.classfile.CfEntry
Return whether the ACC_PROTECTED access flag is set.
isPublic() - Method in class com.claritysys.jvm.classfile.CfEntry
Return whether the ACC_PUBLIC flag is set.
isStatic() - Method in class com.claritysys.jvm.classfile.CfEntry
Return whether the ACC_STATIC access flag is set.
isStrict() - Method in class com.claritysys.jvm.classfile.CfEntry
Return whether the ACC_STRICT access flag is set.
isSynchronized() - Method in class com.claritysys.jvm.classfile.CfEntry
Return whether the ACC_SYNCHRONIZED access flag is set.
isSynthetic() - Method in class com.claritysys.jvm.classfile.CfFieldOrMethod
 
isThisClass(String) - Method in class com.claritysys.jvm.disassembler.Disassembler
 
ISTORE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ISTORE_0 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ISTORE_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ISTORE_2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
ISTORE_3 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
isTransient() - Method in class com.claritysys.jvm.classfile.CfEntry
Return whether the ACC_TRANSIENT access flag is set.
ISUB - Static variable in interface com.claritysys.jvm.classfile.JVM
 
isUnreachable() - Method in class com.claritysys.jvm.builder.ByteArray
Test whether the current PC is unreachable.
isVerifyClassNames() - Method in class com.claritysys.jvm.classfile.ConstantPool
Return whether class name verification is enabled..
isVolatile() - Method in class com.claritysys.jvm.classfile.CfEntry
Return whether the ACC_VOLATILE access flag is set.
IUSHR - Static variable in interface com.claritysys.jvm.classfile.JVM
 
IXOR - Static variable in interface com.claritysys.jvm.classfile.JVM
 

J

JSR - Static variable in interface com.claritysys.jvm.classfile.JVM
 
JSR_W - Static variable in interface com.claritysys.jvm.classfile.JVM
 
JVM - Interface in com.claritysys.jvm.classfile
Java Virtual Machine Constants.

L

L2D - Static variable in interface com.claritysys.jvm.classfile.JVM
 
L2F - Static variable in interface com.claritysys.jvm.classfile.JVM
 
L2I - Static variable in interface com.claritysys.jvm.classfile.JVM
 
Label - Class in com.claritysys.jvm.builder
A label marks a point in the byte[] for branch instruction targets, and allows for forward references to be resolved later.
Label(ByteArray) - Constructor for class com.claritysys.jvm.builder.Label
Create a new label over the given byte array, but do not define it yet.
LADD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LALOAD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LAND - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LASTORE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LCMP - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LCONST_0 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LCONST_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LDC - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LDC2_W - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LDC2_W_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LDC_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LDC_W - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LDC_W_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LDIV - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LineNumber - Class in com.claritysys.jvm.classfile
Association between program counter and sourcefile line number.
LineNumber(int, int) - Constructor for class com.claritysys.jvm.classfile.LineNumber
 
LLOAD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LLOAD_0 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LLOAD_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LLOAD_2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LLOAD_3 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LMUL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LNEG - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LOCAL_ARGS_IMPLIED - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
The implicit local argument.
LOCAL_NUMBER - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
 
LocalVariable - Class in com.claritysys.jvm.classfile
Models an entry in the local variable table of a AttrCode.
LocalVariable(CfMethod, int, int, CpUtf8, CpUtf8, int) - Constructor for class com.claritysys.jvm.classfile.LocalVariable
Create a new local variable.
LOOKUPSWITCH - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LOR - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LREM - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LRETURN - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LSHL - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LSHR - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LSTORE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LSTORE_0 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LSTORE_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LSTORE_2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LSTORE_3 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LSUB - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LUSHR - Static variable in interface com.claritysys.jvm.classfile.JVM
 
LXOR - Static variable in interface com.claritysys.jvm.classfile.JVM
 

M

main(String[]) - Static method in class com.claritysys.jvm.disassembler.Disassembler
Disassemble from command line filename to out.jasm.
main(String[]) - Static method in class com.claritysys.jvm.sample.SampleHelloWorld
 
MAJOR - Static variable in interface com.claritysys.jvm.classfile.JVM
 
MAJOR_1_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
Major and minor version of the code.
MAJOR_1_2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
MAJOR_1_3 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
marker - Variable in class com.claritysys.jvm.disassembler.CodeIterator.LineMarker
 
MAX_ACC_FLAG - Static variable in interface com.claritysys.jvm.classfile.JVM
 
MAX_BYTE - Static variable in interface com.claritysys.jvm.classfile.JVM
Maximum value for an unsigned byte.
MAX_CODE_SIZE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
MAX_CP_ENTRIES - Static variable in interface com.claritysys.jvm.classfile.JVM
Limitations of the Java Virtual Machine.
MAX_SHORT - Static variable in interface com.claritysys.jvm.classfile.JVM
Maximum value for an unsigned short.
method - Variable in class com.claritysys.jvm.classfile.ExceptionHandler
 
METHOD - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
 
MINOR - Static variable in interface com.claritysys.jvm.classfile.JVM
 
MINOR_1_1 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
MINOR_1_2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
MINOR_1_3 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
MONITORENTER - Static variable in interface com.claritysys.jvm.classfile.JVM
 
MONITOREXIT - Static variable in interface com.claritysys.jvm.classfile.JVM
 
MULTIANEWARRAY - Static variable in interface com.claritysys.jvm.classfile.JVM
 
MULTIANEWARRAY_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 

N

NA - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
Not applicable.
NEW - Static variable in interface com.claritysys.jvm.classfile.JVM
 
NEW_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
NEWARRAY - Static variable in interface com.claritysys.jvm.classfile.JVM
 
next() - Method in class com.claritysys.jvm.builder.Label
Get the next label in the chain.
next - Variable in class com.claritysys.jvm.classfile.ExceptionHandler
 
nextI1() - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
nextI2() - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
nextI4() - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
nextOp() - Method in class com.claritysys.jvm.disassembler.CodeIterator
Consume the opcode under the PC and advance the PC by one.
nextU1() - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
nextU2() - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
NO_OF_OPERANDS - Static variable in interface com.claritysys.jvm.classfile.JVM
Number of byte code operands, i.e., number of bytes after the tag byte itself.
NOP - Static variable in interface com.claritysys.jvm.classfile.JVM
Java VM opcodes.

O

ON - Static variable in class com.claritysys.jvm.classfile.Assertions
 
OPCODE_NAMES - Static variable in interface com.claritysys.jvm.classfile.JVM
Names of opcodes.
OpcodeInfo - Interface in com.claritysys.jvm.disassembler
 
Opcodes - Interface in com.claritysys.jvm.builder
 
OPERAND_INTERPRETATION - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
How the byte code operands are to be interpreted.

P

parseType(String) - Static method in class com.claritysys.jvm.classfile.Utils
Return one of the JVM.T_XXX constants for the given VM signature.
parseType(char) - Static method in class com.claritysys.jvm.classfile.Utils
 
parseType() - Method in class com.claritysys.jvm.disassembler.Signature
Parse a single type declaration.
pc - Variable in class com.claritysys.jvm.disassembler.CodeIterator.LineMarker
 
POP - Static variable in interface com.claritysys.jvm.classfile.JVM
 
POP2 - Static variable in interface com.claritysys.jvm.classfile.JVM
 
PRIM_TYPE - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
 
print(String) - Method in class com.claritysys.jvm.disassembler.IndentingWriter
Output to the writer at the current indentation level.
println(String) - Method in class com.claritysys.jvm.disassembler.IndentingWriter
Output to the writer at the current indentation level.
println() - Method in class com.claritysys.jvm.disassembler.IndentingWriter
Write a blank line.
PRODUCE_STACK - Static variable in interface com.claritysys.jvm.classfile.JVM
Number of words produced onto operand stack by instructions.
PUSH - Static variable in interface com.claritysys.jvm.classfile.JVM
For internal purposes only.
pushClass(CodeBuilder, Class) - Static method in class com.claritysys.jvm.builder.BcUtils
Load a class, as the way the Java compiler does it by creating a static field for each class, caching the result from Class.forName.
put1(int) - Method in class com.claritysys.jvm.builder.ByteArray
Write an 8-bit byte to the current bytes-stream.
put2(int) - Method in class com.claritysys.jvm.builder.ByteArray
Write a 16-bit short to the current bytes-stream
put2(int, int) - Method in class com.claritysys.jvm.builder.ByteArray
Write a 16-bit short to the given pc location.
put4(int) - Method in class com.claritysys.jvm.builder.ByteArray
Write a 32-bit int to the current bytes-stream
PUTFIELD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
PUTFIELD2_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
PUTFIELD_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
PUTFIELD_QUICK_W - Static variable in interface com.claritysys.jvm.classfile.JVM
 
putOpcode(int) - Method in class com.claritysys.jvm.builder.ByteArray
Write the given opcode to the byte stream.
PUTSTATIC - Static variable in interface com.claritysys.jvm.classfile.JVM
 
PUTSTATIC2_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 
PUTSTATIC_QUICK - Static variable in interface com.claritysys.jvm.classfile.JVM
 

R

read(DataInputStream) - Method in class com.claritysys.jvm.classfile.CfField
 
read(DataInputStream) - Method in class com.claritysys.jvm.classfile.CfFieldOrMethod
Read the member from the given stream, overwriting any previous values.
read(DataInputStream) - Method in class com.claritysys.jvm.classfile.CfMethod
 
read(DataInputStream) - Method in class com.claritysys.jvm.classfile.ClassFile
Read class file fields from stream, overwriting any previous values.
readTable(DataInputStream, ConstantPool, AttributeHandler) - Static method in class com.claritysys.jvm.classfile.Attribute
Read attribute table from stream, returning a (possibly null) linked list of Attribute objects.
releaseCodeBuilder(CodeBuilder) - Method in class com.claritysys.jvm.classfile.ClassFile
Notify the ClassFile that it can re-use the given CodeBuilder.
reserve(int) - Method in class com.claritysys.jvm.builder.ByteArray
EnsureCapacity, but with a smaller name :)
RESERVED - Static variable in interface com.claritysys.jvm.classfile.JVM
 
reset() - Method in class com.claritysys.jvm.builder.ByteArray
Reset the byte array, in preparation to re-use it.
reset() - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
RET - Static variable in interface com.claritysys.jvm.classfile.JVM
 
RETURN - Static variable in interface com.claritysys.jvm.classfile.JVM
 

S

SALOAD - Static variable in interface com.claritysys.jvm.classfile.JVM
 
SampleHelloWorld - Class in com.claritysys.jvm.sample
Create a "Hello World" program by generating the bytecode.
SampleHelloWorld() - Constructor for class com.claritysys.jvm.sample.SampleHelloWorld
 
SASTORE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
setAbstract(boolean) - Method in class com.claritysys.jvm.classfile.CfEntry
Set or clear the ACC_ABSTRACT access flag.
setAccessFlags(int) - Method in class com.claritysys.jvm.classfile.CfEntry
Set the access flags, overriding any previously set flags.
setAttributes(Attribute) - Method in class com.claritysys.jvm.classfile.CfEntry
Set optional linked list of unknown attributes.
setAutoImport(boolean) - Method in class com.claritysys.jvm.classfile.ConstantPool
Set whether auto import of added classes is performed.
setClassFile(ClassFile) - Method in class com.claritysys.jvm.disassembler.Disassembler
Set the class.
setClassName(String) - Method in class com.claritysys.jvm.classfile.ClassFile
Change the class name.
setCode(byte[]) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setCodeAttributes(Attribute) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setCodeBuilder(CodeBuilder) - Method in class com.claritysys.jvm.builder.CodeBlock
Set the CodeBuilder, in case this block was pooled.
setConstantValue(CpEntry) - Method in class com.claritysys.jvm.classfile.CfField
 
setDeprecated(boolean) - Method in class com.claritysys.jvm.classfile.CfEntry
Set whether the member is deprecated.
setDescriptor(CpUtf8) - Method in class com.claritysys.jvm.classfile.LocalVariable
 
setDescriptorIndex(int) - Method in class com.claritysys.jvm.classfile.CfFieldOrMethod
 
setEndLabel(Label) - Method in class com.claritysys.jvm.builder.CodeBlock
Set the end label.
setEndPc(int) - Method in class com.claritysys.jvm.classfile.ExceptionHandler
 
setExceptionClassIndex(int) - Method in class com.claritysys.jvm.classfile.ExceptionHandler
 
setExceptionCps(int[]) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setExceptions(Class[]) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setFinal(boolean) - Method in class com.claritysys.jvm.classfile.CfEntry
Set or clear the ACC_FINAL access flag.
setHandlerCount(int) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setHandlerPc(int) - Method in class com.claritysys.jvm.classfile.ExceptionHandler
 
setHandlers(ExceptionHandler) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setIndex(int) - Method in class com.claritysys.jvm.classfile.LocalVariable
 
setInfo(byte[]) - Method in class com.claritysys.jvm.classfile.Attribute
 
setInterface(boolean) - Method in class com.claritysys.jvm.classfile.CfEntry
Set or clear the ACC_INTERFACE access flag.
setLastHandler(ExceptionHandler) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setLastLine(LineNumber) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setLastLocal(LocalVariable) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setLength(int) - Method in class com.claritysys.jvm.classfile.Attribute
 
setLength(int) - Method in class com.claritysys.jvm.classfile.LocalVariable
 
setLine(int) - Method in class com.claritysys.jvm.classfile.LineNumber
 
setLineCount(int) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setLineNumber(int) - Method in class com.claritysys.jvm.builder.CodeBuilder
Attach the given line number to the current program counter offset.
setLines(LineNumber) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setLocals(LocalVariable) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setLocalsCount(int) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setLocked(boolean) - Method in class com.claritysys.jvm.classfile.ConstantPool
Set this pool to be locked.
setMaxLocals(int) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setMaxStack(int) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setMethod(CfMethod) - Method in class com.claritysys.jvm.builder.CodeBuilder
Set the method to be built.
setMethod(CfMethod, int) - Method in class com.claritysys.jvm.disassembler.CodeIterator
 
setName(CpUtf8) - Method in class com.claritysys.jvm.classfile.LocalVariable
 
setNameIndex(int) - Method in class com.claritysys.jvm.classfile.Attribute
 
setNameIndex(int) - Method in class com.claritysys.jvm.classfile.CfFieldOrMethod
 
setNative(boolean) - Method in class com.claritysys.jvm.classfile.CfEntry
Set or clear the ACC_NATIVE access flag.
setNext(Attribute) - Method in class com.claritysys.jvm.classfile.Attribute
 
setNext(CfField) - Method in class com.claritysys.jvm.classfile.CfField
 
setNext(CfMethod) - Method in class com.claritysys.jvm.classfile.CfMethod
 
setNext(ExceptionHandler) - Method in class com.claritysys.jvm.classfile.ExceptionHandler
 
setNext(LineNumber) - Method in class com.claritysys.jvm.classfile.LineNumber
 
setNext(LocalVariable) - Method in class com.claritysys.jvm.classfile.LocalVariable
 
setOutput(Writer) - Method in class com.claritysys.jvm.disassembler.Disassembler
Set the writer to write to.
setOutputFile(String) - Method in class com.claritysys.jvm.disassembler.Disassembler
Set the file to write to.
setPC(int) - Method in class com.claritysys.jvm.builder.Label
Set the PC of the label.
setPc(int) - Method in class com.claritysys.jvm.classfile.LineNumber
 
setPrivate(boolean) - Method in class com.claritysys.jvm.classfile.CfEntry
Set or clear the ACC_PRIVATE access flag.
setProtected(boolean) - Method in class com.claritysys.jvm.classfile.CfEntry
Set or clear the ACC_PROTECTED access flag.
setPublic(boolean) - Method in class com.claritysys.jvm.classfile.CfEntry
Set or clear the ACC_PUBLIC access flag.
setSignature(String) - Method in class com.claritysys.jvm.disassembler.Signature
Set the signature and parse into pieces.
setSourcefile(String) - Method in class com.claritysys.jvm.classfile.ClassFile
Set the source file.
setSourcefileCp(int) - Method in class com.claritysys.jvm.classfile.ClassFile
Set the sourcefile name index, a CpUtf8 index.
setStartPc(int) - Method in class com.claritysys.jvm.classfile.ExceptionHandler
 
setStartPc(int) - Method in class com.claritysys.jvm.classfile.LocalVariable
 
setStatic(boolean) - Method in class com.claritysys.jvm.classfile.CfEntry
Set or clear the ACC_STATIC access flag.
setStrict(boolean) - Method in class com.claritysys.jvm.classfile.CfEntry
Set or clear the ACC_STRICT access flag.
setString(String) - Method in class com.claritysys.jvm.classfile.CpUtf8
 
setSurroundingBlock(CodeBlock) - Method in class com.claritysys.jvm.builder.CodeBlock
Make the given block the surrounding block.
setSynchronized(boolean) - Method in class com.claritysys.jvm.classfile.CfEntry
Set or clear the ACC_SYNCHRONIZED access flag.
setSynthetic(boolean) - Method in class com.claritysys.jvm.classfile.CfFieldOrMethod
 
setTransient(boolean) - Method in class com.claritysys.jvm.classfile.CfEntry
Set or clear the ACC_TRANSIENT access flag.
setUnreachable(boolean) - Method in class com.claritysys.jvm.builder.ByteArray
Set whether the current statement is unreachable or not.
setValue(int) - Method in class com.claritysys.jvm.classfile.CpValue1
 
setValue(long) - Method in class com.claritysys.jvm.classfile.CpValue2
 
setVerifyClassNames(boolean) - Method in class com.claritysys.jvm.classfile.ConstantPool
Set whether class name verification is enabled.
setVolatile(boolean) - Method in class com.claritysys.jvm.classfile.CfEntry
Set or clear the ACC_VOLATILE access flag.
SHORT_TYPE_NAMES - Static variable in interface com.claritysys.jvm.classfile.JVM
 
SigConverter - Class in com.claritysys.jvm.classfile
Manages the conversion between Java-friendly type signatures and VM format signatures.
SigConverter() - Constructor for class com.claritysys.jvm.classfile.SigConverter
Create a new SigConverter with only the primitive types initially.
SigConverter(SigConverter) - Constructor for class com.claritysys.jvm.classfile.SigConverter
Create a SigConverter with all the mappings from the given one (eg, create a clone).
Signature - Class in com.claritysys.jvm.disassembler
A parser for type and method signatures.
Signature(Signature.TypeFormatter) - Constructor for class com.claritysys.jvm.disassembler.Signature
Create a new Signature parse using the given (possibly null) type formatter.
Signature.TypeFormatter - Interface in com.claritysys.jvm.disassembler
A listener interface.
SIPUSH - Static variable in interface com.claritysys.jvm.classfile.JVM
 
start() - Method in class com.claritysys.jvm.builder.CodeBlock
Formally start the block, noting the startPC.
startPC - Variable in class com.claritysys.jvm.builder.CodeBlock
The PC where the block was started.
startPc - Variable in class com.claritysys.jvm.classfile.ExceptionHandler
 
STATIC_INITIALIZER_NAME - Static variable in interface com.claritysys.jvm.classfile.JVM
The name of the static initializer, also called "class initialization method" or "interface initialization method".
surroundingBlock - Variable in class com.claritysys.jvm.builder.CodeBlock
Link to surrounding block.
SWAP - Static variable in interface com.claritysys.jvm.classfile.JVM
 
SWITCH - Static variable in interface com.claritysys.jvm.classfile.JVM
 

T

T_ADDRESS - Static variable in interface com.claritysys.jvm.classfile.JVM
 
T_ARRAY - Static variable in interface com.claritysys.jvm.classfile.JVM
 
T_BOOLEAN - Static variable in interface com.claritysys.jvm.classfile.JVM
 
T_BYTE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
T_CHAR - Static variable in interface com.claritysys.jvm.classfile.JVM
 
T_DOUBLE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
T_FLOAT - Static variable in interface com.claritysys.jvm.classfile.JVM
 
T_INT - Static variable in interface com.claritysys.jvm.classfile.JVM
 
T_LONG - Static variable in interface com.claritysys.jvm.classfile.JVM
 
T_OBJECT - Static variable in interface com.claritysys.jvm.classfile.JVM
 
T_REFERENCE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
T_SHORT - Static variable in interface com.claritysys.jvm.classfile.JVM
 
T_UNKNOWN - Static variable in interface com.claritysys.jvm.classfile.JVM
 
T_VOID - Static variable in interface com.claritysys.jvm.classfile.JVM
 
TABLESWITCH - Static variable in interface com.claritysys.jvm.classfile.JVM
 
TAG_CLASS - Static variable in class com.claritysys.jvm.classfile.CpEntry
Tag bytes, from [vmspec2 4.4].
TAG_DOUBLE - Static variable in class com.claritysys.jvm.classfile.CpEntry
 
TAG_FIELDREF - Static variable in class com.claritysys.jvm.classfile.CpEntry
 
TAG_FLOAT - Static variable in class com.claritysys.jvm.classfile.CpEntry
 
TAG_INTEGER - Static variable in class com.claritysys.jvm.classfile.CpEntry
 
TAG_INTERFACE_METHODREF - Static variable in class com.claritysys.jvm.classfile.CpEntry
 
TAG_LONG - Static variable in class com.claritysys.jvm.classfile.CpEntry
 
TAG_METHODREF - Static variable in class com.claritysys.jvm.classfile.CpEntry
 
TAG_NAME_AND_TYPE - Static variable in class com.claritysys.jvm.classfile.CpEntry
 
TAG_STRING - Static variable in class com.claritysys.jvm.classfile.CpEntry
 
TAG_UTF8 - Static variable in class com.claritysys.jvm.classfile.CpEntry
 
toJavaString() - Method in class com.claritysys.jvm.classfile.CpEntry
Convert the entry to a String as it would appear in a Java declaration.
toJavaString() - Method in class com.claritysys.jvm.classfile.CpString
Convert the entry to a String as it would appear in a Java declaration.
toJavaString() - Method in class com.claritysys.jvm.classfile.CpValue1
Convert the entry to a String as it would appear in a Java declaration.
toJavaString() - Method in class com.claritysys.jvm.classfile.CpValue2
Convert the entry to a String as it would appear in a Java declaration.
toString() - Method in class com.claritysys.jvm.classfile.ConstantPool
Return a String description of the contents of this pool.
toString() - Method in class com.claritysys.jvm.classfile.CpClass
 
toString() - Method in class com.claritysys.jvm.classfile.CpNameAndType
 
toString() - Method in class com.claritysys.jvm.classfile.CpRef
 
toString() - Method in class com.claritysys.jvm.classfile.CpString
 
toString() - Method in class com.claritysys.jvm.classfile.CpUtf8
 
toString() - Method in class com.claritysys.jvm.classfile.CpValue1
 
toString() - Method in class com.claritysys.jvm.classfile.CpValue2
 
toVmMethodSig(String) - Method in class com.claritysys.jvm.classfile.SigConverter
Convert the given Java Language formed signature into a VM-style signature.
toVmSig(String, String[]) - Static method in class com.claritysys.jvm.classfile.SigConverter
Convert type and param types to method signature in VM format.
TryBlock - Class in com.claritysys.jvm.builder
A Try block.
TryBlock(CodeBuilder) - Constructor for class com.claritysys.jvm.builder.TryBlock
 
TYPE - Static variable in interface com.claritysys.jvm.disassembler.OpcodeInfo
 
TYPE_NAMES - Static variable in interface com.claritysys.jvm.classfile.JVM
 
TYPE_OF_OPERANDS - Static variable in interface com.claritysys.jvm.classfile.JVM
How the byte code operands are to be interpreted.

U

undeclaredLocals - Variable in class com.claritysys.jvm.builder.CodeBlock
List of undeclared LocalVariable.
UNDEFINED - Static variable in interface com.claritysys.jvm.classfile.JVM
Illegal codes
UNPREDICTABLE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
UNREACHABLES - Static variable in class com.claritysys.jvm.builder.ByteArray
Opcodes that cause forced change of flow control, such as ATHROW.
Utils - Class in com.claritysys.jvm.classfile
 
Utils() - Constructor for class com.claritysys.jvm.classfile.Utils
 

V

visitField(CfField) - Method in class com.claritysys.jvm.disassembler.Disassembler
FIELD modifiers type name (= static value)?
visitJavaClass(ClassFile) - Method in class com.claritysys.jvm.disassembler.Disassembler
CLASS package? import* [modifiers] (class | interface) (extends)? (implements)?
visitMethod(CfMethod) - Method in class com.claritysys.jvm.disassembler.Disassembler
METHOD modifiers type name (params) throws? { code }
VOP_START - Static variable in interface com.claritysys.jvm.builder.Opcodes
Start of virtual opcode, used only in CSG-Bytecode.

W

WIDE - Static variable in interface com.claritysys.jvm.classfile.JVM
 
write(DataOutput) - Method in class com.claritysys.jvm.classfile.CfField
 
write(DataOutput) - Method in class com.claritysys.jvm.classfile.CfFieldOrMethod
Write the field or method to a stream in JVM classfile format.
write(DataOutput) - Method in class com.claritysys.jvm.classfile.CfMethod
 
write(DataOutput) - Method in class com.claritysys.jvm.classfile.ClassFile
Write this ClassFile to the given stream.
write(String) - Method in class com.claritysys.jvm.classfile.ClassFile
Write the ClassFile to the given local file path.
write(OutputStream) - Method in class com.claritysys.jvm.classfile.ClassFile
Write the ClassFile to the given output stream.
write(DataOutput) - Method in class com.claritysys.jvm.classfile.ConstantPool
Write pool to stream.
writeAttribute(DataOutput, ConstantPool, String, int, int) - Static method in class com.claritysys.jvm.classfile.Attribute
Write an attribute, given its name, length, etc.
writeAttribute(DataOutput, ConstantPool, String, int) - Static method in class com.claritysys.jvm.classfile.Attribute
Write an attribute, given its name, length, etc.
writeClassDollar(ClassFile) - Static method in class com.claritysys.jvm.builder.BcUtils
Write the "class$" method as the Java compiler does.
writeTable(DataOutput, Attribute) - Static method in class com.claritysys.jvm.classfile.Attribute
Write the attribute table to the stream, or nothing if the attribute is null.
writeToArray() - Method in class com.claritysys.jvm.classfile.ClassFile
Write the class file image to a byte array and return it.
writeUTF(DataOutput, String) - Method in class com.claritysys.jvm.classfile.ConstantPool
Write the given string to the output stream as a UTF-8 sequence.

X

xDCONST - Static variable in interface com.claritysys.jvm.builder.Opcodes
Select best method for pushing a double constant on the stack, whether it is DCONST_0, DCONST_1, or LDC2_W.
xIPUSH - Static variable in interface com.claritysys.jvm.builder.Opcodes
Select the best method for pushing the integer parameter on the stack, whether via ICONST_X, BIPUSH, SIPUSH, or LDC/LDC_W.
xLCONST - Static variable in interface com.claritysys.jvm.builder.Opcodes
Select the best method for pushing a long constant on the stack, whether it is LCONST_0, LCONST_1, or LDC2_W.
xLOAD - Static variable in interface com.claritysys.jvm.builder.Opcodes
Select the proper type of load based on the argument, such as ALOAD, ILOAD, etc.
xRETURN - Static variable in interface com.claritysys.jvm.builder.Opcodes
Select the proper type of return based on the method signature, such as RETURN, ARETURN, IRETURN, etc.
xSTORE - Static variable in interface com.claritysys.jvm.builder.Opcodes
Select the proper type of store based on the argument, such as ASTORE, ISTORE, etc.
A B C D E F G H I J L M N O P R S T U V W X 

Copyright ? 2000-2003 Clarity Systems Group, LLC. All Rights Reserved.