Record Class JavaDynamicCallSite
java.lang.Object
java.lang.Record
dev.archunitjava.model.JavaDynamicCallSite
- All Implemented Interfaces:
Comparable<JavaDynamicCallSite>
public record JavaDynamicCallSite(JavaMemberSignature caller, String invocationName, JvmMethodType invocationType, JavaMethodHandle bootstrapMethod, List<JavaBootstrapArgument> bootstrapArguments, int originalBootstrapArgumentCount, boolean bootstrapArgumentsTruncated, JavaDynamicCallSiteKind kind, Optional<JavaMethodHandle> lambdaImplementation, List<JvmReferenceType> functionalInterfaces, BytecodeLocation location)
extends Record
implements Comparable<JavaDynamicCallSite>
One unresolved invokedynamic call site with narrowly classified bootstrap evidence.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJavaDynamicCallSite(JavaMemberSignature caller, String invocationName, JvmMethodType invocationType, JavaMethodHandle bootstrapMethod, List<JavaBootstrapArgument> bootstrapArguments, int originalBootstrapArgumentCount, boolean bootstrapArgumentsTruncated, JavaDynamicCallSiteKind kind, Optional<JavaMethodHandle> lambdaImplementation, List<JvmReferenceType> functionalInterfaces, BytecodeLocation location) Creates an instance of aJavaDynamicCallSiterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebootstrapArgumentsrecord component.booleanReturns the value of thebootstrapArgumentsTruncatedrecord component.Returns the value of thebootstrapMethodrecord component.caller()Returns the value of thecallerrecord component.intcompareTo(JavaDynamicCallSite other) final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefunctionalInterfacesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinvocationNamerecord component.Returns the value of theinvocationTyperecord component.kind()Returns the value of thekindrecord component.Returns the value of thelambdaImplementationrecord component.location()Returns the value of thelocationrecord 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
-
JavaDynamicCallSite
public JavaDynamicCallSite(JavaMemberSignature caller, String invocationName, JvmMethodType invocationType, JavaMethodHandle bootstrapMethod, List<JavaBootstrapArgument> bootstrapArguments, int originalBootstrapArgumentCount, boolean bootstrapArgumentsTruncated, JavaDynamicCallSiteKind kind, Optional<JavaMethodHandle> lambdaImplementation, List<JvmReferenceType> functionalInterfaces, BytecodeLocation location) Creates an instance of aJavaDynamicCallSiterecord class.- Parameters:
caller- the value for thecallerrecord componentinvocationName- the value for theinvocationNamerecord componentinvocationType- the value for theinvocationTyperecord componentbootstrapMethod- the value for thebootstrapMethodrecord componentbootstrapArguments- the value for thebootstrapArgumentsrecord componentoriginalBootstrapArgumentCount- the value for theoriginalBootstrapArgumentCountrecord componentbootstrapArgumentsTruncated- the value for thebootstrapArgumentsTruncatedrecord componentkind- the value for thekindrecord componentlambdaImplementation- the value for thelambdaImplementationrecord componentfunctionalInterfaces- the value for thefunctionalInterfacesrecord componentlocation- the value for thelocationrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<JavaDynamicCallSite>
-
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. -
caller
Returns the value of thecallerrecord component.- Returns:
- the value of the
callerrecord component
-
invocationName
Returns the value of theinvocationNamerecord component.- Returns:
- the value of the
invocationNamerecord component
-
invocationType
Returns the value of theinvocationTyperecord component.- Returns:
- the value of the
invocationTyperecord 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
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
lambdaImplementation
Returns the value of thelambdaImplementationrecord component.- Returns:
- the value of the
lambdaImplementationrecord component
-
functionalInterfaces
Returns the value of thefunctionalInterfacesrecord component.- Returns:
- the value of the
functionalInterfacesrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-