Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class TargetInfoImpl.CatchTargetImpl
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.TargetInfoImpl.CatchTargetImpl
- All Implemented Interfaces:
TypeAnnotation.CatchTarget,TypeAnnotation.TargetInfo
- Enclosing class:
TargetInfoImpl
public static record TargetInfoImpl.CatchTargetImpl(int exceptionTableIndex)
extends Record
implements TypeAnnotation.CatchTarget
-
Constructor Summary
ConstructorsConstructorDescriptionCatchTargetImpl(int exceptionTableIndex) Creates an instance of aCatchTargetImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexceptionTableIndexrecord component.final inthashCode()Returns a hash code value for this object.Returns the type of the target.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glavo.classfile.TypeAnnotation.TargetInfo
size
-
Constructor Details
-
CatchTargetImpl
public CatchTargetImpl(int exceptionTableIndex) Creates an instance of aCatchTargetImplrecord class.- Parameters:
exceptionTableIndex- the value for theexceptionTableIndexrecord component
-
-
Method Details
-
targetType
Description copied from interface:TypeAnnotation.TargetInfoReturns the type of the target.- Specified by:
targetTypein interfaceTypeAnnotation.TargetInfo- Returns:
- the type of the target
-
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. All components in this record class are compared with '=='. -
exceptionTableIndex
public int exceptionTableIndex()Returns the value of theexceptionTableIndexrecord component.- Specified by:
exceptionTableIndexin interfaceTypeAnnotation.CatchTarget- Returns:
- the value of the
exceptionTableIndexrecord component
-