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

C

calculateMaxLocals() - Method in class com.techtrader.modules.tools.bytecode.Code
Ask the code to figure out the number of locals it needs based on the instructions used and the parameters of the method this code block is a part of.
calculateMaxStack() - Method in class com.techtrader.modules.tools.bytecode.Code
Ask the code to figure out the maximum stack depth it needs the instructions used.
calculateOpCode() - Method in class com.techtrader.modules.tools.bytecode.ArrayInstruction
Subclasses with variable opcodes can use this method to be notified that information possibly affecting the opcode has been changed.
calculateOpCode() - Method in class com.techtrader.modules.tools.bytecode.LocalVariableInstruction
Subclasses with variable opcodes can use this method to be notified that information possibly affecting the opcode has been changed.
calculateOpCode() - Method in class com.techtrader.modules.tools.bytecode.ArrayStoreInstruction
 
calculateOpCode() - Method in class com.techtrader.modules.tools.bytecode.StoreInstruction
 
calculateOpCode() - Method in class com.techtrader.modules.tools.bytecode.LoadInstruction
 
calculateOpCode() - Method in class com.techtrader.modules.tools.bytecode.ArrayLoadInstruction
 
CALOAD - Static variable in interface com.techtrader.modules.tools.bytecode.Constants
 
caload() - Method in class com.techtrader.modules.tools.bytecode.Code
 
CASTORE - Static variable in interface com.techtrader.modules.tools.bytecode.Constants
 
castore() - Method in class com.techtrader.modules.tools.bytecode.Code
 
CHECKCAST - Static variable in interface com.techtrader.modules.tools.bytecode.Constants
 
checkcast() - Method in class com.techtrader.modules.tools.bytecode.Code
 
classconstant() - Method in class com.techtrader.modules.tools.bytecode.Code
Loads a Class constant onto the stack.
ClassConstantInstruction - class com.techtrader.modules.tools.bytecode.ClassConstantInstruction.
Pseudo-instruction used to place Class types onto the stack.
ClassConstantInstruction(BCClass, Code, Instruction) - Constructor for class com.techtrader.modules.tools.bytecode.ClassConstantInstruction
Protected constructor.
ClassEntry - class com.techtrader.modules.tools.bytecode.lowlevel.ClassEntry.
Low-level representation of a constant pool entry describing a Class.
ClassEntry() - Constructor for class com.techtrader.modules.tools.bytecode.lowlevel.ClassEntry
 
ClassInstruction - class com.techtrader.modules.tools.bytecode.ClassInstruction.
Represents an instruction that takes as an argument a Class to operate on.
ClassInstruction(Code, int) - Constructor for class com.techtrader.modules.tools.bytecode.ClassInstruction
 
clearAttributes() - Method in class com.techtrader.modules.tools.bytecode.BCEntity
Clear all attributes from this entity.
clearExceptionHandlers() - Method in class com.techtrader.modules.tools.bytecode.Code
Clear all exception handlers.
clearExceptions() - Method in class com.techtrader.modules.tools.bytecode.ExceptionsAttribute
Clear this method of all exception declarations.
clearExceptionTypes() - Method in class com.techtrader.modules.tools.bytecode.BCMethod
Remove all declared exceptions from this method.
clearFields() - Method in class com.techtrader.modules.tools.bytecode.BCClass
Clear all fields from this class.
clearInnerClasses() - Method in class com.techtrader.modules.tools.bytecode.InnerClassesAttribute
Clear all inner classes from this entity.
clearInterfaces() - Method in class com.techtrader.modules.tools.bytecode.BCClass
Clear this class of all interface declarations.
clearLineNumbers() - Method in class com.techtrader.modules.tools.bytecode.LineNumberTableAttribute
Clear the line numbers.
clearLocalVariables() - Method in class com.techtrader.modules.tools.bytecode.LocalVariableTableAttribute
Clear all locals from this method.
clearMethods() - Method in class com.techtrader.modules.tools.bytecode.BCClass
Remove all methods from this class; note that this includes constructors, static initializers, etc.
cmp() - Method in class com.techtrader.modules.tools.bytecode.Code
Convenience method to use when the types being compared are not known at compile time.
CmpInstruction - class com.techtrader.modules.tools.bytecode.CmpInstruction.
An instruction comparing two stack values that varies depending on the value type.
CmpInstruction(Code) - Constructor for class com.techtrader.modules.tools.bytecode.CmpInstruction
 
CmpInstruction(Code, int, Class, int) - Constructor for class com.techtrader.modules.tools.bytecode.CmpInstruction
 
Code - class com.techtrader.modules.tools.bytecode.Code.
Representation of a code block of a class; a Code instance can only be obtained from a BCMethod.
Code() - Constructor for class com.techtrader.modules.tools.bytecode.Code
The public constructor is for creating template code modules that can be used to produce Instructions to be used in matching for various search() and replace() methods.
Code(int, BCEntity) - Constructor for class com.techtrader.modules.tools.bytecode.Code
 
com.techtrader.modules.tools.bytecode - package com.techtrader.modules.tools.bytecode
Bytecode Manipuation
com.techtrader.modules.tools.bytecode.lowlevel - package com.techtrader.modules.tools.bytecode.lowlevel
Lowlevel Bytecode Manipuation
com.techtrader.modules.tools.bytecode.visitor - package com.techtrader.modules.tools.bytecode.visitor
Bytecode Visitor
ComplexEntry - class com.techtrader.modules.tools.bytecode.lowlevel.ComplexEntry.
The complex entry serves as a base class for field, method, and interface method constant pool entries.
ComplexEntry() - Constructor for class com.techtrader.modules.tools.bytecode.lowlevel.ComplexEntry
 
constant() - Method in class com.techtrader.modules.tools.bytecode.Code
Load some constant onto the stack.
ConstantEntry - interface com.techtrader.modules.tools.bytecode.lowlevel.ConstantEntry.
Interface implemented by Entries representing constant values to generically access/mutate the constant value.
ConstantInstruction - class com.techtrader.modules.tools.bytecode.ConstantInstruction.
Represents an instruction that that loads a constant onto the stack.
ConstantInstruction(Code) - Constructor for class com.techtrader.modules.tools.bytecode.ConstantInstruction
 
ConstantInstruction(Code, int, Object) - Constructor for class com.techtrader.modules.tools.bytecode.ConstantInstruction
 
ConstantPool - class com.techtrader.modules.tools.bytecode.lowlevel.ConstantPool.
Represents a class constant pool, containing entries for all strings, constants, classes, etc referenced in the class structure and opcodes.
ConstantPool(BCClass) - Constructor for class com.techtrader.modules.tools.bytecode.lowlevel.ConstantPool
 
Constants - interface com.techtrader.modules.tools.bytecode.Constants.
Interface to track constants used in bytecode.
ConstantValueAttribute - class com.techtrader.modules.tools.bytecode.ConstantValueAttribute.
Representation of a constant value in a .class file.
ConstantValueAttribute(int, BCEntity) - Constructor for class com.techtrader.modules.tools.bytecode.ConstantValueAttribute
Protected constructor.
convert() - Method in class com.techtrader.modules.tools.bytecode.Code
This is a convenience method to invoke the proper conversion instruction if the types being converted are not known at compile time.
ConvertInstruction - class com.techtrader.modules.tools.bytecode.ConvertInstruction.
Represents one of the conversion opcodes defined in the Constants interface for converting between primitive types.
ConvertInstruction(Code) - Constructor for class com.techtrader.modules.tools.bytecode.ConvertInstruction
 
ConvertInstruction(Code, int, Class, Class) - Constructor for class com.techtrader.modules.tools.bytecode.ConvertInstruction
 
copy(Attribute) - Method in class com.techtrader.modules.tools.bytecode.Attribute
Copy the information from the given attribute to this one.
copy(Attribute) - Method in class com.techtrader.modules.tools.bytecode.SourceFileAttribute
 
copy(Attribute) - Method in class com.techtrader.modules.tools.bytecode.InnerClassesAttribute
 
copy(Attribute) - Method in class com.techtrader.modules.tools.bytecode.LocalVariableTableAttribute
 
copy(Attribute) - Method in class com.techtrader.modules.tools.bytecode.ExceptionsAttribute
 
copy(Attribute) - Method in class com.techtrader.modules.tools.bytecode.Code
Copies the instructions of the given code block to this one; used to import methods from other classes or copy methods within a class.
copy(Attribute) - Method in class com.techtrader.modules.tools.bytecode.LineNumberTableAttribute
 
copy(Attribute) - Method in class com.techtrader.modules.tools.bytecode.ConstantValueAttribute
 
copy(Attribute) - Method in class com.techtrader.modules.tools.bytecode.UnknownAttribute
 
copy(BCClass) - Method in class com.techtrader.modules.tools.bytecode.BCClass
Copy all of the data from the given original BCClass to this one, recursing into fields, methods, code, the constant pool, etc.
copy(ExceptionHandler) - Method in class com.techtrader.modules.tools.bytecode.ExceptionHandler
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.Instruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.MathInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.ArrayInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.LocalVariableInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.ClassInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.ReturnInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.JumpInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.ConstantInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.MethodInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.TypedLocalVariableInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.FieldInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.IIncInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.WideInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.MultiANewArrayInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.CmpInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.ConvertInstruction
 
copy(Instruction) - Method in class com.techtrader.modules.tools.bytecode.NewArrayInstruction
 
createAttribute(String, BCEntity) - Static method in class com.techtrader.modules.tools.bytecode.Attribute
Create an attribute of the appropriate type based on the the attribute name.
createEntry(int) - Static method in class com.techtrader.modules.tools.bytecode.lowlevel.ConstantPool
Create an Entry based on its one-byte code: one of the constants in the LowLevelConstants class.

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