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.Simple, 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(org.objectweb.asm.MethodVisitor methodVisitor,
     Implementation.Context implementationContext)
Applies the stack manipulation that is described by this instance. 
 | 
StackManipulation | 
cached()
Returns a cached version of this field constant. 
 | 
boolean | 
equals(Object other)  | 
int | 
hashCode()  | 
boolean | 
isValid()
Determines if this stack manipulation is valid. 
 | 
public FieldConstant(FieldDescription.InDefinedShape fieldDescription)
fieldDescription - The field to be represent as a Field.public StackManipulation cached()
public boolean isValid()
isValid in interface StackManipulationfalse, this manipulation cannot be applied and should throw an exception.public StackManipulation.Size apply(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext)
apply in interface StackManipulationmethodVisitor - The method visitor used to write the method implementation to.implementationContext - The context of the current implementation.Copyright © 2014–2021. All rights reserved.