Uses of Interface
org.apache.tapestry5.plastic.InstructionBuilder
Packages that use InstructionBuilder
Package
Description
[INTERNAL USE ONLY] Plastic implementation details; API subject to change
Plastic, Tapestry's component class transformation library based on ASM
-
Uses of InstructionBuilder in org.apache.tapestry5.internal.plastic
Classes in org.apache.tapestry5.internal.plastic that implement InstructionBuilderMethods in org.apache.tapestry5.internal.plastic that return InstructionBuilderModifier and TypeMethodDescriptionInstructionBuilderImpl.arrayLength()
InstructionBuilderImpl.boxPrimitive
(String typeName) InstructionBuilderImpl.castOrUnbox
(String typeName) InstructionBuilderImpl.compareSpecial
(String typeName) InstructionBuilderImpl.doWhile
(Condition condition, WhileCallback callback) InstructionBuilderImpl.dupe()
InstructionBuilderImpl.dupe
(int depth) InstructionBuilderImpl.dupeWide()
InstructionBuilderImpl.getField
(PlasticField field) InstructionBuilderImpl.getStaticField
(String className, String fieldName, Class fieldType) InstructionBuilderImpl.getStaticField
(String className, String fieldName, String typeName) InstructionBuilderImpl.increment
(LocalVariable variable) InstructionBuilderImpl.instanceOf
(Class clazz) InstructionBuilderImpl.instanceOf
(String className) InstructionBuilderImpl.invoke
(Class clazz, Class returnType, String methodName, Class... argumentTypes) InstructionBuilderImpl.invokeConstructor
(Class clazz, Class... argumentTypes) InstructionBuilderImpl.invokeConstructor
(String className, String... argumentTypes) InstructionBuilderImpl.invokeInterface
(String interfaceName, String returnType, String methodName, String... argumentTypes) InstructionBuilderImpl.invokeSpecial
(String containingClassName, MethodDescription description) InstructionBuilderImpl.invokeStatic
(Class clazz, Class returnType, String methodName, Class... argumentTypes) InstructionBuilderImpl.invokeVirtual
(String className, String returnType, String methodName, String... argumentTypes) InstructionBuilderImpl.invokeVirtual
(PlasticMethod method) InstructionBuilderImpl.iterateArray
(InstructionBuilderCallback callback) InstructionBuilderImpl.loadArgument
(int index) InstructionBuilderImpl.loadArguments()
InstructionBuilderImpl.loadArrayElement()
InstructionBuilderImpl.loadArrayElement
(int index, String elementType) InstructionBuilderImpl.loadConstant
(Object constant) InstructionBuilderImpl.loadNull()
InstructionBuilderImpl.loadThis()
InstructionBuilderImpl.loadTypeConstant
(Class clazz) InstructionBuilderImpl.loadTypeConstant
(String typeName) InstructionBuilderImpl.loadVariable
(LocalVariable var) InstructionBuilderImpl.newInstance
(Class clazz) InstructionBuilderImpl.newInstance
(String className) InstructionBuilderImpl.pop()
InstructionBuilderImpl.popWide()
InstructionBuilderImpl.putStaticField
(String className, String fieldName, Class fieldType) InstructionBuilderImpl.putStaticField
(String className, String fieldName, String typeName) InstructionBuilderImpl.returnDefaultValue()
InstructionBuilderImpl.returnResult()
InstructionBuilderImpl.startSwitch
(int min, int max, SwitchCallback callback) InstructionBuilderImpl.startTryCatch
(TryCatchCallback callback) InstructionBuilderImpl.startVariable
(String type, LocalVariableCallback callback) InstructionBuilderImpl.storeVariable
(LocalVariable var) InstructionBuilderImpl.swap()
InstructionBuilderImpl.throwException()
InstructionBuilderImpl.throwException
(Class<? extends Throwable> exceptionType, String message) InstructionBuilderImpl.throwException
(String className, String message) InstructionBuilderImpl.unboxPrimitive
(String typeName) InstructionBuilderImpl.when
(Condition condition, InstructionBuilderCallback ifTrue) InstructionBuilderImpl.when
(Condition condition, WhenCallback callback) -
Uses of InstructionBuilder in org.apache.tapestry5.plastic
Methods in org.apache.tapestry5.plastic that return InstructionBuilderModifier and TypeMethodDescriptionInstructionBuilder.arrayLength()
Expects the top object on the stack to be an array.InstructionBuilder.boxPrimitive
(String typeName) If the type name is a primitive type, adds code to box the type into the equivalent wrapper type, using static methods on the wrapper type.InstructionBuilder.castOrUnbox
(String typeName) Casts the object on top of the stack to the indicated type.Adds a check that the object on top of the stack is assignable to the indicated class.InstructionBuilder.compareSpecial
(String typeName) Special comparison logic for primitive float, double and long.InstructionBuilder.doWhile
(Condition condition, WhileCallback callback) Implements a simple loop based on a condition.InstructionBuilder.dupe()
Duplicates the top object on the stack.InstructionBuilder.dupe
(int depth) Duplicates the top object on the stack, placing the result at some depth.InstructionBuilder.dupeWide()
Duplicates a wide value (a primitive long or double).Loads a field onto the stack.Loads an instance field onto the stack.InstructionBuilder.getField
(PlasticField field) Loads an instance or static field onto the stack.InstructionBuilder.getStaticField
(String className, String fieldName, Class fieldType) Gets a static field; does not consume a value from the stack, but pushes the fields' value onto the stack.InstructionBuilder.getStaticField
(String className, String fieldName, String typeName) Gets a static field; does not consume a value from the stack, but pushes the fields' value onto the stack.InstructionBuilder.increment
(LocalVariable variable) Increments a local integer variable.InstructionBuilder.instanceOf
(Class clazz) Adds a check that the object on top of the stack is assignable to the indicated class.InstructionBuilder.instanceOf
(String className) Adds a check that the object on top of the stack is assignable to the indicated class.Automatically invokes an interface or virtual method.Automatically invokes an interface or virtual method.InstructionBuilder.invokeConstructor
(Class clazz, Class... argumentTypes) InstructionBuilder.invokeConstructor
(String className, String... argumentTypes) Invokes a constructor on a class.InstructionBuilder.invokeInterface
(String interfaceName, String returnType, String methodName, String... argumentTypes) Invokes a standard virtual method.InstructionBuilder.invokeSpecial
(String containingClassName, MethodDescription description) Invokes an instance method of a base class, or a private method of a class, using the target object and parameters already on the stack.InstructionBuilder.invokeStatic
(Class clazz, Class returnType, String methodName, Class... argumentTypes) Invokes a static method of a class.InstructionBuilder.invokeVirtual
(String className, String returnType, String methodName, String... argumentTypes) Invokes a standard virtual method.InstructionBuilder.invokeVirtual
(PlasticMethod method) InstructionBuilder.iterateArray
(InstructionBuilderCallback callback) Expects an array to be the top value on the stack.InstructionBuilder.loadArgument
(int index) Loads an argument onto the stack, using the opcode appropriate to the argument's type.InstructionBuilder.loadArguments()
Loads all arguments for the current method onto the stack; this is used when invoking a method that takes the exact same parameters (often, a super-class implementation).InstructionBuilder.loadArrayElement()
Loads a value from an array object.InstructionBuilder.loadArrayElement
(int index, String elementType) Loads a value from an array object, which must be the top element of the stack.InstructionBuilder.loadConstant
(Object constant) Loads a constant valueInstructionBuilder.loadNull()
Loads the null constant onto the stack.InstructionBuilder.loadThis()
Loads this onto the stack.InstructionBuilder.loadTypeConstant
(Class type) Loads a Java type (a Class instance) as a constant.InstructionBuilder.loadTypeConstant
(String typeName) Loads a Java type (a Class instance) as a constant.InstructionBuilder.loadVariable
(LocalVariable variable) Loads a value from a local variable and pushes it onto the stack.InstructionBuilder.newInstance
(Class clazz) A convenience version ofnewInstance(String)
used when the class is known at build time.InstructionBuilder.newInstance
(String className) Creates a new, uninitialized instance of the indicated class.InstructionBuilder.pop()
Discards the top value on the stack.InstructionBuilder.popWide()
Pops a wide value (a primitive long or double).Expects the stack to contain the instance to update, and the value to store into the field.InstructionBuilder.putStaticField
(String className, String fieldName, Class fieldType) Sets a static field; the new field value should be on top of the stack.InstructionBuilder.putStaticField
(String className, String fieldName, String typeName) Sets a static field; the new field value should be on top of the stack.InstructionBuilder.returnDefaultValue()
Returns the default value for the method, which may be null, or a specific primitive value.InstructionBuilder.returnResult()
Returns the top value on the stack.InstructionBuilder.startSwitch
(int min, int max, SwitchCallback callback) Starts a switch statement.InstructionBuilder.startTryCatch
(TryCatchCallback tryCatchCallback) Defines the start of a block that can have exception handlers and finally blocks applied.InstructionBuilder.startVariable
(String type, LocalVariableCallback callback) Starts a block where the given name is active.InstructionBuilder.storeVariable
(LocalVariable variable) Stores the value on top of the stack to a local variable (previously defined bystartVariable(String, LocalVariableCallback)
.InstructionBuilder.swap()
Swaps the top element of the stack with the next element down.InstructionBuilder.throwException()
Throws the exception on the top of the stack.InstructionBuilder.throwException
(Class<? extends Throwable> exceptionType, String message) InstructionBuilder.throwException
(String className, String message) Throws an exception with a fixed message.InstructionBuilder.unboxPrimitive
(String typeName) Unboxes a wrapper type to a primitive type if typeName is a primitive type name (the value on the stack should be the corresponding wrapper type instance).InstructionBuilder.when
(Condition condition, InstructionBuilderCallback ifTrue) Simplified version ofwhen(Condition, WhenCallback)
that simply executes the callback code when the condition is true and does nothing if the condition is false (the more general case).InstructionBuilder.when
(Condition condition, WhenCallback callback) Executes conditional code based on aCondition
.Methods in org.apache.tapestry5.plastic with parameters of type InstructionBuilderModifier and TypeMethodDescriptionvoid
WhileCallback.buildBody
(InstructionBuilder builder) Provides the main code executed inside the loop.void
WhileCallback.buildTest
(InstructionBuilder builder) void
InstructionBuilderCallback.doBuild
(InstructionBuilder builder) Invoked by the builder to allow the callback to build some code.void
LocalVariableCallback.doBuild
(LocalVariable variable, InstructionBuilder builder) Callback to generate code with a local variablevoid
WhenCallback.ifFalse
(InstructionBuilder builder) Generates code for when the condition is false.void
WhenCallback.ifTrue
(InstructionBuilder builder) Generates code for when the condition is true.