static class AnnotationsAttribute.Copier extends AnnotationsAttribute.Walker
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.Map |
classnames |
(package private) ConstPool |
destPool |
(package private) java.io.ByteArrayOutputStream |
output |
(package private) ConstPool |
srcPool |
(package private) AnnotationsWriter |
writer |
info| Constructor and Description |
|---|
Copier(byte[] info,
ConstPool src,
ConstPool dest,
java.util.Map map)
Constructs a copier.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
annotation(int pos,
int type,
int numPairs) |
(package private) int |
annotationArray(int pos,
int num) |
(package private) int |
annotationMemberValue(int pos) |
(package private) int |
arrayMemberValue(int pos,
int num) |
(package private) void |
classMemberValue(int pos,
int index) |
(package private) byte[] |
close() |
(package private) void |
constValueMember(int tag,
int index) |
(package private) int |
copy(int srcIndex)
Copies a constant pool entry into the destination constant pool
and returns the index of the copied entry.
|
(package private) int |
copyType(int srcIndex)
Copies a constant pool entry into the destination constant pool
and returns the index of the copied entry.
|
(package private) void |
enumMemberValue(int pos,
int typeNameIndex,
int constNameIndex) |
(package private) int |
memberValuePair(int pos,
int nameIndex) |
(package private) void |
parameters(int numParam,
int pos) |
annotation, annotationArray, annotationArray, memberValue, memberValuePair, parametersjava.io.ByteArrayOutputStream output
AnnotationsWriter writer
ConstPool srcPool
ConstPool destPool
java.util.Map classnames
Copier(byte[] info,
ConstPool src,
ConstPool dest,
java.util.Map map)
map when it copies
an annotation attribute.info - the source attribute.src - the constant pool of the source class.dest - the constant pool of the destination class.map - pairs of replaced and substituted class names.
It can be null.byte[] close()
throws java.io.IOException
java.io.IOExceptionvoid parameters(int numParam,
int pos)
throws java.lang.Exception
parameters in class AnnotationsAttribute.Walkerjava.lang.Exceptionint annotationArray(int pos,
int num)
throws java.lang.Exception
annotationArray in class AnnotationsAttribute.Walkerjava.lang.Exceptionint annotation(int pos,
int type,
int numPairs)
throws java.lang.Exception
annotation in class AnnotationsAttribute.Walkerjava.lang.Exceptionint memberValuePair(int pos,
int nameIndex)
throws java.lang.Exception
memberValuePair in class AnnotationsAttribute.Walkerjava.lang.Exceptionvoid constValueMember(int tag,
int index)
throws java.lang.Exception
constValueMember in class AnnotationsAttribute.Walkerjava.lang.Exceptionvoid enumMemberValue(int pos,
int typeNameIndex,
int constNameIndex)
throws java.lang.Exception
enumMemberValue in class AnnotationsAttribute.Walkerjava.lang.Exceptionvoid classMemberValue(int pos,
int index)
throws java.lang.Exception
classMemberValue in class AnnotationsAttribute.Walkerjava.lang.Exceptionint annotationMemberValue(int pos)
throws java.lang.Exception
annotationMemberValue in class AnnotationsAttribute.Walkerjava.lang.Exceptionint arrayMemberValue(int pos,
int num)
throws java.lang.Exception
arrayMemberValue in class AnnotationsAttribute.Walkerjava.lang.Exceptionint copy(int srcIndex)
srcIndex - the index of the copied entry into the source
constant pool.int copyType(int srcIndex)
srcIndex - the index of the copied entry into the source
constant pool.