public class TypeAnnotationsWriter extends AnnotationsWriter
..TypeAnnotations_attribute
.
See the source code of the TypeAnnotationsAttribute
class.Constructor and Description |
---|
TypeAnnotationsWriter(java.io.OutputStream os,
ConstPool cp)
Constructs with the given output stream.
|
Modifier and Type | Method and Description |
---|---|
void |
catchTarget(int exceptionTableIndex)
Writes
target_type and catch_target
of target_info union. |
void |
emptyTarget(int targetType)
Writes
target_type and empty_target
of target_info union. |
void |
formalParameterTarget(int formalParameterIndex)
Writes
target_type and type_parameter_target
of target_info union. |
void |
localVarTarget(int targetType,
int tableLength)
Writes
target_type and localvar_target
of target_info union. |
void |
localVarTargetTable(int startPc,
int length,
int index)
Writes an element of
table[] of localvar_target
of target_info union. |
void |
numAnnotations(int num)
Writes
num_annotations in
Runtime(In)VisibleTypeAnnotations_attribute . |
void |
offsetTarget(int targetType,
int offset)
Writes
target_type and offset_target
of target_info union. |
void |
supertypeTarget(int supertypeIndex)
Writes
target_type and supertype_target
of target_info union. |
void |
throwsTarget(int throwsTypeIndex)
Writes
target_type and throws_target
of target_info union. |
void |
typeArgumentTarget(int targetType,
int offset,
int type_argument_index)
Writes
target_type and type_argument_target
of target_info union. |
void |
typeParameterBoundTarget(int targetType,
int typeParameterIndex,
int boundIndex)
Writes
target_type and type_parameter_bound_target
of target_info union. |
void |
typeParameterTarget(int targetType,
int typeParameterIndex)
Writes
target_type and type_parameter_target
of target_info union. |
void |
typePath(int pathLength)
Writes
path_length of type_path . |
void |
typePathPath(int typePathKind,
int typeArgumentIndex)
Writes an element of
path[] of type_path . |
annotation, annotation, annotationValue, arrayValue, classInfoIndex, classInfoIndex, close, constValueIndex, constValueIndex, constValueIndex, constValueIndex, constValueIndex, constValueIndex, constValueIndex, constValueIndex, constValueIndex, constValueIndex, enumConstValue, enumConstValue, getConstPool, memberValuePair, memberValuePair, numParameters
public TypeAnnotationsWriter(java.io.OutputStream os, ConstPool cp)
os
- the output stream.cp
- the constant pool.public void numAnnotations(int num) throws java.io.IOException
num_annotations
in
Runtime(In)VisibleTypeAnnotations_attribute
.
It must be followed by num
instances of type_annotation
.numAnnotations
in class AnnotationsWriter
java.io.IOException
public void typeParameterTarget(int targetType, int typeParameterIndex) throws java.io.IOException
target_type
and type_parameter_target
of target_info
union.java.io.IOException
public void supertypeTarget(int supertypeIndex) throws java.io.IOException
target_type
and supertype_target
of target_info
union.java.io.IOException
public void typeParameterBoundTarget(int targetType, int typeParameterIndex, int boundIndex) throws java.io.IOException
target_type
and type_parameter_bound_target
of target_info
union.java.io.IOException
public void emptyTarget(int targetType) throws java.io.IOException
target_type
and empty_target
of target_info
union.java.io.IOException
public void formalParameterTarget(int formalParameterIndex) throws java.io.IOException
target_type
and type_parameter_target
of target_info
union.java.io.IOException
public void throwsTarget(int throwsTypeIndex) throws java.io.IOException
target_type
and throws_target
of target_info
union.java.io.IOException
public void localVarTarget(int targetType, int tableLength) throws java.io.IOException
target_type
and localvar_target
of target_info
union.
It must be followed by tableLength
calls
to localVarTargetTable
.java.io.IOException
public void localVarTargetTable(int startPc, int length, int index) throws java.io.IOException
table[]
of localvar_target
of target_info
union.java.io.IOException
public void catchTarget(int exceptionTableIndex) throws java.io.IOException
target_type
and catch_target
of target_info
union.java.io.IOException
public void offsetTarget(int targetType, int offset) throws java.io.IOException
target_type
and offset_target
of target_info
union.java.io.IOException
public void typeArgumentTarget(int targetType, int offset, int type_argument_index) throws java.io.IOException
target_type
and type_argument_target
of target_info
union.java.io.IOException
public void typePath(int pathLength) throws java.io.IOException
path_length
of type_path
.java.io.IOException
public void typePathPath(int typePathKind, int typeArgumentIndex) throws java.io.IOException
path[]
of type_path
.java.io.IOException
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.