public class FieldConstant extends StackManipulation.AbstractBase
Field constant for a given type.| Modifier and Type | Class and Description |
|---|---|
protected static class |
FieldConstant.Cached
A cached version of a
FieldConstant. |
StackManipulation.AbstractBase, 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(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() |
isValidpublic FieldConstant(FieldDescription.InDefinedShape fieldDescription)
fieldDescription - The field to be represent as a Field.public StackManipulation cached()
public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)
methodVisitor - The method visitor used to write the method implementation to.implementationContext - The context of the current implementation.public boolean equals(@MaybeNull Object other)
Copyright © 2014–2023. All rights reserved.