private TargetInfo createTargetInfo() { byte u1targetType = dataInput.readByte(); switch (u1targetType) { case ClassConstants.ANNOTATION_TARGET_ParameterGenericClass: case ClassConstants.ANNOTATION_TARGET_ParameterGenericMethod: return new TypeParameterTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Extends: return new SuperTypeTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_BoundGenericClass: case ClassConstants.ANNOTATION_TARGET_BoundGenericMethod: return new TypeParameterBoundTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Field: case ClassConstants.ANNOTATION_TARGET_Return: case ClassConstants.ANNOTATION_TARGET_Receiver: return new EmptyTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Parameter: return new FormalParameterTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Throws: return new ThrowsTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_LocalVariable: case ClassConstants.ANNOTATION_TARGET_ResourceVariable: return new LocalVariableTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Catch: return new CatchTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_InstanceOf: case ClassConstants.ANNOTATION_TARGET_New: case ClassConstants.ANNOTATION_TARGET_MethodReferenceNew: case ClassConstants.ANNOTATION_TARGET_MethodReference: return new OffsetTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Cast: case ClassConstants.ANNOTATION_TARGET_ArgumentGenericMethodNew: case ClassConstants.ANNOTATION_TARGET_ArgumentGenericMethod: case ClassConstants.ANNOTATION_TARGET_ArgumentGenericMethodReferenceNew: case ClassConstants.ANNOTATION_TARGET_ArgumentGenericMethodReference: return new TypeArgumentTargetInfo(u1targetType); default: throw new RuntimeException("Unknown annotation target type ["+u1targetType+"]"); } }
private TargetInfo createTargetInfo() { byte u1targetType = dataInput.readByte(); switch (u1targetType) { case ClassConstants.ANNOTATION_TARGET_ParameterGenericClass: case ClassConstants.ANNOTATION_TARGET_ParameterGenericMethod: return new TypeParameterTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Extends: return new SuperTypeTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_BoundGenericClass: case ClassConstants.ANNOTATION_TARGET_BoundGenericMethod: return new TypeParameterBoundTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Field: case ClassConstants.ANNOTATION_TARGET_Return: case ClassConstants.ANNOTATION_TARGET_Receiver: return new EmptyTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Parameter: return new FormalParameterTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Throws: return new ThrowsTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_LocalVariable: case ClassConstants.ANNOTATION_TARGET_ResourceVariable: return new LocalVariableTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Catch: return new CatchTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_InstanceOf: case ClassConstants.ANNOTATION_TARGET_New: case ClassConstants.ANNOTATION_TARGET_MethodReferenceNew: case ClassConstants.ANNOTATION_TARGET_MethodReference: return new OffsetTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Cast: case ClassConstants.ANNOTATION_TARGET_ArgumentGenericMethodNew: case ClassConstants.ANNOTATION_TARGET_ArgumentGenericMethod: case ClassConstants.ANNOTATION_TARGET_ArgumentGenericMethodReferenceNew: case ClassConstants.ANNOTATION_TARGET_ArgumentGenericMethodReference: return new TypeArgumentTargetInfo(u1targetType); default: throw new RuntimeException("Unknown annotation target type ["+u1targetType+"]"); } }
private TargetInfo createTargetInfo() { byte u1targetType = dataInput.readByte(); switch (u1targetType) { case ClassConstants.ANNOTATION_TARGET_ParameterGenericClass: case ClassConstants.ANNOTATION_TARGET_ParameterGenericMethod: return new TypeParameterTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Extends: return new SuperTypeTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_BoundGenericClass: case ClassConstants.ANNOTATION_TARGET_BoundGenericMethod: return new TypeParameterBoundTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Field: case ClassConstants.ANNOTATION_TARGET_Return: case ClassConstants.ANNOTATION_TARGET_Receiver: return new EmptyTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Parameter: return new FormalParameterTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Throws: return new ThrowsTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_LocalVariable: case ClassConstants.ANNOTATION_TARGET_ResourceVariable: return new LocalVariableTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Catch: return new CatchTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_InstanceOf: case ClassConstants.ANNOTATION_TARGET_New: case ClassConstants.ANNOTATION_TARGET_MethodReferenceNew: case ClassConstants.ANNOTATION_TARGET_MethodReference: return new OffsetTargetInfo(u1targetType); case ClassConstants.ANNOTATION_TARGET_Cast: case ClassConstants.ANNOTATION_TARGET_ArgumentGenericMethodNew: case ClassConstants.ANNOTATION_TARGET_ArgumentGenericMethod: case ClassConstants.ANNOTATION_TARGET_ArgumentGenericMethodReferenceNew: case ClassConstants.ANNOTATION_TARGET_ArgumentGenericMethodReference: return new TypeArgumentTargetInfo(u1targetType); default: throw new RuntimeException("Unknown annotation target type ["+u1targetType+"]"); } }