Record Class ParsedDynamicCallSite
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedDynamicCallSite
- All Implemented Interfaces:
Comparable<ParsedDynamicCallSite>
public record ParsedDynamicCallSite(String invocationName, String invocationDescriptor, ParsedMethodHandle bootstrapMethod, List<ParsedBootstrapArgument> bootstrapArguments, int bytecodeOffset)
extends Record
implements Comparable<ParsedDynamicCallSite>
One invokedynamic instruction and its unresolved bootstrap evidence.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedDynamicCallSite(String invocationName, String invocationDescriptor, ParsedMethodHandle bootstrapMethod, List<ParsedBootstrapArgument> bootstrapArguments, int bytecodeOffset) Creates an instance of aParsedDynamicCallSiterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebootstrapArgumentsrecord component.Returns the value of thebootstrapMethodrecord component.intReturns the value of thebytecodeOffsetrecord component.intcompareTo(ParsedDynamicCallSite other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinvocationDescriptorrecord component.Returns the value of theinvocationNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedDynamicCallSite
public ParsedDynamicCallSite(String invocationName, String invocationDescriptor, ParsedMethodHandle bootstrapMethod, List<ParsedBootstrapArgument> bootstrapArguments, int bytecodeOffset) Creates an instance of aParsedDynamicCallSiterecord class.- Parameters:
invocationName- the value for theinvocationNamerecord componentinvocationDescriptor- the value for theinvocationDescriptorrecord componentbootstrapMethod- the value for thebootstrapMethodrecord componentbootstrapArguments- the value for thebootstrapArgumentsrecord componentbytecodeOffset- the value for thebytecodeOffsetrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedDynamicCallSite>
-
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. -
invocationName
Returns the value of theinvocationNamerecord component.- Returns:
- the value of the
invocationNamerecord component
-
invocationDescriptor
Returns the value of theinvocationDescriptorrecord component.- Returns:
- the value of the
invocationDescriptorrecord 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
-
bytecodeOffset
public int bytecodeOffset()Returns the value of thebytecodeOffsetrecord component.- Returns:
- the value of the
bytecodeOffsetrecord component
-