public class TypeAnnotationsWriter extends AnnotationsWriter
..TypeAnnotations_attribute.
 See the source code of the TypeAnnotationsAttribute class.output| Constructor and Description | 
|---|
| TypeAnnotationsWriter(OutputStream os,
                     ConstPool cp)Constructs with the given output stream. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | catchTarget(int exceptionTableIndex)Writes  target_typeandcatch_targetoftarget_infounion. | 
| void | emptyTarget(int targetType)Writes  target_typeandempty_targetoftarget_infounion. | 
| void | formalParameterTarget(int formalParameterIndex)Writes  target_typeandtype_parameter_targetoftarget_infounion. | 
| void | localVarTarget(int targetType,
              int tableLength)Writes  target_typeandlocalvar_targetoftarget_infounion. | 
| void | localVarTargetTable(int startPc,
                   int length,
                   int index)Writes an element of  table[]oflocalvar_targetoftarget_infounion. | 
| void | numAnnotations(int num)Writes  num_annotationsinRuntime(In)VisibleTypeAnnotations_attribute. | 
| void | offsetTarget(int targetType,
            int offset)Writes  target_typeandoffset_targetoftarget_infounion. | 
| void | supertypeTarget(int supertypeIndex)Writes  target_typeandsupertype_targetoftarget_infounion. | 
| void | throwsTarget(int throwsTypeIndex)Writes  target_typeandthrows_targetoftarget_infounion. | 
| void | typeArgumentTarget(int targetType,
                  int offset,
                  int type_argument_index)Writes  target_typeandtype_argument_targetoftarget_infounion. | 
| void | typeParameterBoundTarget(int targetType,
                        int typeParameterIndex,
                        int boundIndex)Writes  target_typeandtype_parameter_bound_targetoftarget_infounion. | 
| void | typeParameterTarget(int targetType,
                   int typeParameterIndex)Writes  target_typeandtype_parameter_targetoftarget_infounion. | 
| void | typePath(int pathLength)Writes  path_lengthoftype_path. | 
| void | typePathPath(int typePathKind,
            int typeArgumentIndex)Writes an element of  path[]oftype_path. | 
annotation, annotation, annotationValue, arrayValue, classInfoIndex, classInfoIndex, close, constValueIndex, constValueIndex, constValueIndex, constValueIndex, constValueIndex, constValueIndex, constValueIndex, constValueIndex, constValueIndex, constValueIndex, enumConstValue, enumConstValue, getConstPool, memberValuePair, memberValuePair, numParameters, write16bitpublic TypeAnnotationsWriter(OutputStream os, ConstPool cp)
os - the output stream.cp - the constant pool.public void numAnnotations(int num)
                    throws IOException
num_annotations in
 Runtime(In)VisibleTypeAnnotations_attribute.
 It must be followed by num instances of type_annotation.numAnnotations in class AnnotationsWriterIOExceptionpublic void typeParameterTarget(int targetType,
                                int typeParameterIndex)
                         throws IOException
target_type and type_parameter_target
 of target_info union.IOExceptionpublic void supertypeTarget(int supertypeIndex)
                     throws IOException
target_type and supertype_target
 of target_info union.IOExceptionpublic void typeParameterBoundTarget(int targetType,
                                     int typeParameterIndex,
                                     int boundIndex)
                              throws IOException
target_type and type_parameter_bound_target
 of target_info union.IOExceptionpublic void emptyTarget(int targetType)
                 throws IOException
target_type and empty_target
 of target_info union.IOExceptionpublic void formalParameterTarget(int formalParameterIndex)
                           throws IOException
target_type and type_parameter_target
 of target_info union.IOExceptionpublic void throwsTarget(int throwsTypeIndex)
                  throws IOException
target_type and throws_target
 of target_info union.IOExceptionpublic void localVarTarget(int targetType,
                           int tableLength)
                    throws IOException
target_type and localvar_target
 of target_info union.
 It must be followed by tableLength calls
 to localVarTargetTable.IOExceptionpublic void localVarTargetTable(int startPc,
                                int length,
                                int index)
                         throws IOException
table[] of localvar_target
 of target_info union.IOExceptionpublic void catchTarget(int exceptionTableIndex)
                 throws IOException
target_type and catch_target
 of target_info union.IOExceptionpublic void offsetTarget(int targetType,
                         int offset)
                  throws IOException
target_type and offset_target
 of target_info union.IOExceptionpublic void typeArgumentTarget(int targetType,
                               int offset,
                               int type_argument_index)
                        throws IOException
target_type and type_argument_target
 of target_info union.IOExceptionpublic void typePath(int pathLength)
              throws IOException
path_length of type_path.IOExceptionpublic void typePathPath(int typePathKind,
                         int typeArgumentIndex)
                  throws IOException
path[] of type_path.IOExceptionCopyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.