Record Class PotentialConstantLookupTag
java.lang.Object
java.lang.Record
net.covers1624.coffeegrinder.bytecode.insns.tags.PotentialConstantLookupTag
- All Implemented Interfaces:
InsnTag
public record PotentialConstantLookupTag(boolean isStatic, LdcInsn ldc)
extends Record
implements InsnTag
Created by covers1624 on 17/9/21.
-
Constructor Summary
ConstructorsConstructorDescriptionPotentialConstantLookupTag(boolean isStatic, LdcInsn ldc) Creates an instance of aPotentialConstantLookupTagrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisStatic()Returns the value of theisStaticrecord component.ldc()Returns the value of theldcrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PotentialConstantLookupTag
Creates an instance of aPotentialConstantLookupTagrecord class.- Parameters:
isStatic- the value for theisStaticrecord componentldc- the value for theldcrecord component
-
-
Method Details
-
describe
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
isStatic
public boolean isStatic()Returns the value of theisStaticrecord component.- Returns:
- the value of the
isStaticrecord component
-
ldc
Returns the value of theldcrecord component.- Returns:
- the value of the
ldcrecord component
-