Uses of Class
gnu.bytecode.CodeAttr
Packages that use CodeAttr
Package
Description
Contains classes to generate, read,
write, and print Java bytecode in the form of
.class
files.Supports
Expression
,
and various related classes need to compile programming languages.Contains classes to use reflection.
-
Uses of CodeAttr in gnu.bytecode
Methods in gnu.bytecode that return CodeAttrModifier and TypeMethodDescriptionfinal CodeAttr
Method.getCode()
Method.startCode()
Recommended method to create a new CodeAttr for this Method.Methods in gnu.bytecode with parameters of type CodeAttrModifier and TypeMethodDescriptionboolean
Add a new case.boolean
SwitchState.addCaseGoto
(int value, CodeAttr code, Label label) Optimization ofaddCase(value, code); emitGoto(label)
.void
SwitchState.addDefault
(CodeAttr code) Scope.addVariable
(CodeAttr code, Type type, String name) void
Scope.addVariable
(CodeAttr code, Variable var) void
Variable.allocateLocal
(CodeAttr code) Allocate slots for a local variable (or parameter).void
Define the value of a label as having the current location.void
Define the value of a label as having the current location.void
ObjectType.emitCoerceFromObject
(CodeAttr code) Compile (in given method) cast from Object to this Type.void
ParameterizedType.emitCoerceFromObject
(CodeAttr code) void
PrimType.emitCoerceFromObject
(CodeAttr code) void
Type.emitCoerceFromObject
(CodeAttr code) Compile code to coerce/convert from Object to this type.void
TypeVariable.emitCoerceFromObject
(CodeAttr code) void
PrimType.emitCoerceToObject
(CodeAttr code) void
Type.emitCoerceToObject
(CodeAttr code) Compile code to convert a object of this type on the stack to Object.void
Type.emitConvertFromPrimitive
(Type stackType, CodeAttr code) Convert from stackType (usually PrimType) to this type.void
ParameterizedType.emitIsInstance
(CodeAttr code) void
PrimType.emitIsInstance
(CodeAttr code) void
Type.emitIsInstance
(CodeAttr code) void
StackMapTableAttr.emitStackMapEntry
(Label label, CodeAttr code) Emit type state for the given Label.void
SwitchState.exitSwitch
(CodeAttr code) Break/exit from this switch.void
Handle the end of the switch statement.void
boolean
SwitchState.insertCase
(int value, Label label, CodeAttr code) Internal routine to add a new case.void
Scope.noteStartFunction
(CodeAttr code) Should be called at the start of a logical function - inlined or not.boolean
Variable.reserveLocal
(int varIndex, CodeAttr code) Assign a local variable to a given local variable slot.void
Scope.setStartPC
(CodeAttr code) void
void
SwitchState.switchValuePushed
(CodeAttr code) Needs to be called after the switch value has been pushed.Constructors in gnu.bytecode with parameters of type CodeAttrModifierConstructorDescriptionLineNumbersAttr
(short[] numbers, CodeAttr code) LineNumbersAttr
(CodeAttr code) Add a new LineNumbersAttr to a CodeAttr.LocalVarsAttr
(CodeAttr code) Add a new LocalVarsAttr to a CodeAttr.StackMapTableAttr
(byte[] data, CodeAttr code) Add a new StackMapTableAttr to a CodeAttr.SwitchState
(CodeAttr code) -
Uses of CodeAttr in gnu.expr
Modifier and TypeMethodDescriptionfinal Variable
Declaration.allocateVariable
(CodeAttr code) final Variable
Declaration.allocateVariable
(CodeAttr code, boolean autoPopScope) static void
PrimProcedure.compileReachedUnexpected
(CodeAttr code) final void
ConditionalTarget.emitGotoFirstBranch
(CodeAttr code) Goto whichever of IfTrue or ifFalse is specified by trueBranchComesFirst.void
Clear bytecode resources for the ScopeExp. -
Uses of CodeAttr in gnu.kawa.lispexpr
Methods in gnu.kawa.lispexpr with parameters of type CodeAttrModifier and TypeMethodDescriptionvoid
LangObjType.emitCoerceFromObject
(CodeAttr code) void
LangPrimType.emitCoerceFromObject
(CodeAttr code) void
SeqSizeType.emitCoerceFromObject
(CodeAttr code) void
LangPrimType.emitCoerceToObject
(CodeAttr code) boolean
LangObjType.emitCoercionOrNull
(CodeAttr code) boolean
SeqSizeType.emitCoercionOrNull
(CodeAttr code) void
LangObjType.emitConvertFromPrimitive
(Type stackType, CodeAttr code) void
LangPrimType.emitIsInstance
(CodeAttr code) -
Uses of CodeAttr in gnu.kawa.reflect
Methods in gnu.kawa.reflect with parameters of type CodeAttrModifier and TypeMethodDescriptionvoid
MappedArrayType.emitCoerceFromObject
(CodeAttr code) void
SingletonType.emitCoerceFromObject
(CodeAttr code) -
Uses of CodeAttr in gnu.kawa.xml
Methods in gnu.kawa.xml with parameters of type CodeAttrModifier and TypeMethodDescriptionvoid
AttributeType.emitCoerceFromObject
(CodeAttr code) void
ElementType.emitCoerceFromObject
(CodeAttr code) void
NodeType.emitCoerceFromObject
(CodeAttr code) void
ProcessingInstructionType.emitCoerceFromObject
(CodeAttr code) void
XDataType.emitCoerceFromObject
(CodeAttr code) void
XDataType.emitCoerceToObject
(CodeAttr code)