Package org.apache.tapestry5.plastic
package org.apache.tapestry5.plastic
Plastic, Tapestry's component class transformation library based on ASM
-
ClassDescriptionInterface implemented by members that may hold annotations.The end result of a class transformation is a ClassInstantiator that can be used to instantiate an instance of the transformed class.Identifies the type of class referenced in a
PlasticClassEvent
.Provides an indirect, or computed, value.Condition used withInstructionBuilder.when(Condition, WhenCallback)
.Supplies construction-time logic for the class' constructor.FieldConduit<T>AFieldConduit
is an object that effectively replaces the field in the instantiated object.Allows read/write access directly to a field (bypassing accessors).Interface that can be implemented to provide access to field values based on their name.Defines per-instance context values for a transformed PlasticClass.Simplifies the generation of method instructions for a particular method (or constructor), allowing bytecode to be created with a friendlier API that focuses on Java type names (names as they would appear in Java source) rather than JVM descriptors or internal names.Used in various places to allow some code to be constructed under controlled circumstances.Variable available inside aLocalVariableCallback
.A callback for generating code where a local variable is in effect.MethodAdvice is a special callback that is threaded into the implementation of a method.Exception raised when there's an attempt to create a method which already exists in a class.Describes aPlasticMethod
in terms of a method name, a set of modifiers (public, private, static, final, etc.), a return type, types of method arguments, and types of checked exceptions.Similiar toMethod
, this allows a method of a Plastic class to be invoked regardless of visibility.A representation of the invocation of a method that allows the behavior of the method to be advised: either by changing parameter values, or by changing the return value, or by catch or throwing different exceptions.The result of a method invocation, which encapsulates the actual return value (if any), as well as any checked exception.Access to the parameters of a method, in particular, any visible annotations on that method.Used to document theInstructionBuilder
andTryCatchBlock
The representation of a class while it is being instrumented and transformed.Describes a transformed class about to be loaded.Allows a listener to be notified about classes about to be loaded by the manager's class loader.Methods for adding and removingPlasticClassListener
s .A wrapper around aPlasticClass
that allows the class to be converted into a concrete class, once all transformations are complete.Interface for defining how aPlasticClass
is transformed.Represents a field of a class being transformed.Manages the internal class loaders and other logics necessary to load and transform existing classes, or to create new classes dynamically at runtime.A builder object for configuring the PlasticManager before instantiating it.Delegate to thePlasticManager
that performs the actual transformations of the class.A method of a transformed class.Utilities for user code making use of Plastic.Class used to represent a field name and its type for PlasticUtils.implementFieldValueProvider(PlasticClass, Set).Used when converting a field into a property (that is, adding accessor methods for the field) to identify which method(s) to create (a getter to access the value and/or a mutator to modify the value).Interface that can be implemented to provide access to field values based on their name.Support for building the equivalent of a Java switch statement.A callback used by aSwitchBlock
to manage the generation of code.Options used when transforming classes.Allows a portion of a method to be marked so that exception and finally handlers can be provided.A callback used withInstructionBuilder.startTryCatch(TryCatchCallback)
.Callback used withInstructionBuilder.doWhile(Condition, WhileCallback)
.