public class FieldConstant extends Object implements StackManipulation
Field constant for a given type.| Modifier and Type | Class and Description | 
|---|---|
protected static class  | 
FieldConstant.Cached
A cached version of a  
FieldConstant. | 
StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.Size, StackManipulation.Trivial| Constructor and Description | 
|---|
FieldConstant(FieldDescription.InDefinedShape fieldDescription)
Creates a new field constant. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
StackManipulation.Size | 
apply(MethodVisitor methodVisitor,
     Implementation.Context implementationContext)
Applies the stack manipulation that is described by this instance. 
 | 
StackManipulation | 
cached()
Retruns a cached version of this field constant. 
 | 
boolean | 
equals(Object other)  | 
int | 
hashCode()  | 
boolean | 
isValid()
Determines if this stack manipulation is valid. 
 | 
String | 
toString()  | 
public FieldConstant(FieldDescription.InDefinedShape fieldDescription)
fieldDescription - The field to be represent as a Field.public StackManipulation cached()
public boolean isValid()
StackManipulationisValid in interface StackManipulationfalse, this manipulation cannot be applied and should throw an exception.public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)
StackManipulationapply in interface StackManipulationmethodVisitor - The method visitor used to write the method implementation to.implementationContext - The context of the current implementation.Copyright © 2014–2016. All rights reserved.