Record Class ParsedDynamicConstant
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedDynamicConstant
- All Implemented Interfaces:
Comparable<ParsedDynamicConstant>
public record ParsedDynamicConstant(String name, String descriptor, ParsedMethodHandle bootstrapMethod, List<ParsedBootstrapArgument> bootstrapArguments, int originalBootstrapArgumentCount, boolean bootstrapArgumentsTruncated)
extends Record
implements Comparable<ParsedDynamicConstant>
Unresolved CONSTANT_Dynamic value and its bounded bootstrap provenance.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParsedDynamicConstant(String name, String descriptor, ParsedMethodHandle bootstrapMethod, List<ParsedBootstrapArgument> bootstrapArguments, int originalBootstrapArgumentCount, boolean bootstrapArgumentsTruncated) Creates an instance of aParsedDynamicConstantrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebootstrapArgumentsrecord component.booleanReturns the value of thebootstrapArgumentsTruncatedrecord component.Returns the value of thebootstrapMethodrecord component.intcompareTo(ParsedDynamicConstant other) Returns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.intReturns the value of theoriginalBootstrapArgumentCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
MAXIMUM_BOOTSTRAP_ARGUMENTS
public static final int MAXIMUM_BOOTSTRAP_ARGUMENTS- See Also:
-
-
Constructor Details
-
ParsedDynamicConstant
public ParsedDynamicConstant(String name, String descriptor, ParsedMethodHandle bootstrapMethod, List<ParsedBootstrapArgument> bootstrapArguments, int originalBootstrapArgumentCount, boolean bootstrapArgumentsTruncated) Creates an instance of aParsedDynamicConstantrecord class.- Parameters:
name- the value for thenamerecord componentdescriptor- the value for thedescriptorrecord componentbootstrapMethod- the value for thebootstrapMethodrecord componentbootstrapArguments- the value for thebootstrapArgumentsrecord componentoriginalBootstrapArgumentCount- the value for theoriginalBootstrapArgumentCountrecord componentbootstrapArgumentsTruncated- the value for thebootstrapArgumentsTruncatedrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedDynamicConstant>
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
bootstrapMethod
Returns the value of thebootstrapMethodrecord component.- Returns:
- the value of the
bootstrapMethodrecord component
-
bootstrapArguments
Returns the value of thebootstrapArgumentsrecord component.- Returns:
- the value of the
bootstrapArgumentsrecord component
-
originalBootstrapArgumentCount
public int originalBootstrapArgumentCount()Returns the value of theoriginalBootstrapArgumentCountrecord component.- Returns:
- the value of the
originalBootstrapArgumentCountrecord component
-
bootstrapArgumentsTruncated
public boolean bootstrapArgumentsTruncated()Returns the value of thebootstrapArgumentsTruncatedrecord component.- Returns:
- the value of the
bootstrapArgumentsTruncatedrecord component
-