protected static class FixedValue.ForStaticField extends FixedValue implements FixedValue.AssignerConfigurable
FixedValue.AssignerConfigurable, FixedValue.ForNullValue, FixedValue.ForOriginType, FixedValue.ForPoolValue, FixedValue.ForStaticFieldImplementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Targetassigner, typing| Modifier | Constructor and Description | 
|---|---|
| protected  | ForStaticField(Object fixedValue,
              Assigner assigner,
              Assigner.Typing typing)Creates a new static field fixed value implementation with a random name for the field containing the fixed
 value. | 
| protected  | ForStaticField(String fieldName,
              Object fixedValue,
              Assigner assigner,
              Assigner.Typing typing)Creates a new static field fixed value implementation. | 
| Modifier and Type | Method and Description | 
|---|---|
| ByteCodeAppender | appender(Implementation.Target implementationTarget)Creates a byte code appender that determines the implementation of the instrumented type's methods. | 
| boolean | equals(Object other) | 
| int | hashCode() | 
| InstrumentedType | prepare(InstrumentedType instrumentedType)Prepares a given instrumented type. | 
| String | toString() | 
| Implementation | withAssigner(Assigner assigner,
            Assigner.Typing typing)Defines an explicit assigner to this fixed value implementation. | 
apply, nullValue, originType, reference, reference, value, value, valueprotected ForStaticField(Object fixedValue, Assigner assigner, Assigner.Typing typing)
fixedValue - The fixed value to be returned.assigner - The assigner to use for assigning the fixed value to the return type of the instrumented value.typing - Indicates if dynamic type castings should be attempted for incompatible assignments.protected ForStaticField(String fieldName, Object fixedValue, Assigner assigner, Assigner.Typing typing)
fieldName - The name of the field for storing the fixed value.fixedValue - The fixed value to be returned.assigner - The assigner to use for assigning the fixed value to the return type of the
                   instrumented value.typing - Indicates if dynamic type castings should be attempted for incompatible assignments.public Implementation withAssigner(Assigner assigner, Assigner.Typing typing)
FixedValue.AssignerConfigurablewithAssigner in interface FixedValue.AssignerConfigurableassigner - The assigner to use for assigning the fixed value to the return type of the
                 instrumented value.typing - Indicates if dynamic type castings should be attempted for incompatible assignments.public InstrumentedType prepare(InstrumentedType instrumentedType)
InstrumentedType.Prepareableprepare in interface InstrumentedType.PrepareableinstrumentedType - The instrumented type in its current form.public ByteCodeAppender appender(Implementation.Target implementationTarget)
Implementationappender in interface ImplementationimplementationTarget - The target of the current implementation.InstrumentedType.Prepareable.prepare(InstrumentedType).public boolean equals(Object other)
equals in class FixedValuepublic int hashCode()
hashCode in class FixedValueCopyright © 2014–2016. All rights reserved.