Class TypeAnnotation
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.attribute.annotation.Annotation
-
- proguard.classfile.attribute.annotation.TypeAnnotation
-
- All Implemented Interfaces:
java.io.Serializable
,Processable
public class TypeAnnotation extends Annotation
Representation of a type annotation.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description TargetInfo
targetInfo
TypePathInfo[]
typePath
-
Fields inherited from class proguard.classfile.attribute.annotation.Annotation
elementValues, referencedClasses, u2elementValuesCount, u2typeIndex
-
Fields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
Constructor Summary
Constructors Constructor Description TypeAnnotation()
Creates an uninitialized TypeAnnotation.TypeAnnotation(int u2typeIndex, int u2elementValuesCount, ElementValue[] elementValues, TargetInfo targetInfo, TypePathInfo[] typePath)
Creates an initialized TypeAnnotation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
targetInfoAccept(Clazz clazz, TargetInfoVisitor targetInfoVisitor)
Applies the given visitor to the target info.void
targetInfoAccept(Clazz clazz, Field field, TargetInfoVisitor targetInfoVisitor)
Applies the given visitor to the target info.void
targetInfoAccept(Clazz clazz, Method method, TargetInfoVisitor targetInfoVisitor)
Applies the given visitor to the target info.void
targetInfoAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, TargetInfoVisitor targetInfoVisitor)
Applies the given visitor to the target info.void
typePathInfosAccept(Clazz clazz, TypePathInfoVisitor typePathVisitor)
Applies the given visitor to all type path elements.void
typePathInfosAccept(Clazz clazz, Field field, TypePathInfoVisitor typePathVisitor)
Applies the given visitor to all type path elements.void
typePathInfosAccept(Clazz clazz, Method method, TypePathInfoVisitor typePathVisitor)
Applies the given visitor to all type path elements.void
typePathInfosAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, TypePathInfoVisitor typePathVisitor)
Applies the given visitor to all type path elements.-
Methods inherited from class proguard.classfile.attribute.annotation.Annotation
elementValueAccept, elementValuesAccept, getType, referencedClassAccept, referencedClassesAccept
-
Methods inherited from class proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
-
-
-
Field Detail
-
targetInfo
public TargetInfo targetInfo
-
typePath
public TypePathInfo[] typePath
-
-
Constructor Detail
-
TypeAnnotation
public TypeAnnotation()
Creates an uninitialized TypeAnnotation.
-
TypeAnnotation
public TypeAnnotation(int u2typeIndex, int u2elementValuesCount, ElementValue[] elementValues, TargetInfo targetInfo, TypePathInfo[] typePath)
Creates an initialized TypeAnnotation.
-
-
Method Detail
-
targetInfoAccept
public void targetInfoAccept(Clazz clazz, TargetInfoVisitor targetInfoVisitor)
Applies the given visitor to the target info.
-
targetInfoAccept
public void targetInfoAccept(Clazz clazz, Field field, TargetInfoVisitor targetInfoVisitor)
Applies the given visitor to the target info.
-
targetInfoAccept
public void targetInfoAccept(Clazz clazz, Method method, TargetInfoVisitor targetInfoVisitor)
Applies the given visitor to the target info.
-
targetInfoAccept
public void targetInfoAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, TargetInfoVisitor targetInfoVisitor)
Applies the given visitor to the target info.
-
typePathInfosAccept
public void typePathInfosAccept(Clazz clazz, TypePathInfoVisitor typePathVisitor)
Applies the given visitor to all type path elements.
-
typePathInfosAccept
public void typePathInfosAccept(Clazz clazz, Field field, TypePathInfoVisitor typePathVisitor)
Applies the given visitor to all type path elements.
-
typePathInfosAccept
public void typePathInfosAccept(Clazz clazz, Method method, TypePathInfoVisitor typePathVisitor)
Applies the given visitor to all type path elements.
-
typePathInfosAccept
public void typePathInfosAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, TypePathInfoVisitor typePathVisitor)
Applies the given visitor to all type path elements.
-
-