Package xyz.cofe.trambda.bc.cls
Class CTypeAnnotation
- java.lang.Object
-
- xyz.cofe.trambda.bc.cls.CTypeAnnotation
-
- All Implemented Interfaces:
Serializable,xyz.cofe.collection.ImTree<ByteCode>,xyz.cofe.collection.ImTreeWalk<ByteCode>,AnnotationDef,GetAnnotationByteCodes,ByteCode,ClazzWriter,ClsByteCode
public class CTypeAnnotation extends Object implements ClsByteCode, AnnotationDef, GetAnnotationByteCodes, ClazzWriter
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<AnnotationByteCode>annotationByteCodesprotected Stringdescriptorprotected StringtypePaththe path to the annotated type argument, wildcard bound, array element type, or static inner type within 'typeRef'.protected inttypeRefa reference to the annotated type.protected booleanvisible
-
Constructor Summary
Constructors Constructor Description CTypeAnnotation()Конструктор по умолчаниюCTypeAnnotation(int typeRef, String typePath, String descriptor, boolean visible)CTypeAnnotation(CTypeAnnotation sample)Конструктор копирования
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CTypeAnnotationclone()CTypeAnnotationconfigure(Consumer<CTypeAnnotation> conf)Конфигурация экземпляраList<AnnotationByteCode>getAnnotationByteCodes()StringgetDescriptor()StringgetTypePath()intgetTypeRef()booleanisVisible()xyz.cofe.iter.Eterable<ByteCode>nodes()Возвращает дочерние узлыvoidsetAnnotationByteCodes(List<AnnotationByteCode> byteCodes)voidsetDescriptor(String descriptor)voidsetTypePath(String typePath)voidsetTypeRef(int typeRef)voidsetVisible(boolean visible)StringtoString()voidwrite(org.objectweb.asm.ClassWriter v)
-
-
-
Field Detail
-
typeRef
protected int typeRef
a reference to the annotated type. The sort of this type reference must beTypeReference.CLASS_TYPE_PARAMETER,TypeReference.CLASS_TYPE_PARAMETER_BOUNDorTypeReference.CLASS_EXTENDSSeeTypeReference.
-
typePath
protected String typePath
the path to the annotated type argument, wildcard bound, array element type, or static inner type within 'typeRef'. May be null if the annotation targets 'typeRef' as a whole.
-
descriptor
protected String descriptor
-
visible
protected boolean visible
-
annotationByteCodes
protected List<AnnotationByteCode> annotationByteCodes
-
-
Constructor Detail
-
CTypeAnnotation
public CTypeAnnotation()
Конструктор по умолчанию
-
CTypeAnnotation
public CTypeAnnotation(int typeRef, String typePath, String descriptor, boolean visible)
-
CTypeAnnotation
public CTypeAnnotation(CTypeAnnotation sample)
Конструктор копирования- Parameters:
sample- образец
-
-
Method Detail
-
clone
public CTypeAnnotation clone()
- Specified by:
clonein interfaceClsByteCode- Overrides:
clonein classObject
-
configure
public CTypeAnnotation configure(Consumer<CTypeAnnotation> conf)
Конфигурация экземпляра- Parameters:
conf- конфигурация- Returns:
- SELF ссылка
-
getTypeRef
public int getTypeRef()
-
setTypeRef
public void setTypeRef(int typeRef)
-
getTypePath
public String getTypePath()
-
setTypePath
public void setTypePath(String typePath)
-
getDescriptor
public String getDescriptor()
-
setDescriptor
public void setDescriptor(String descriptor)
-
isVisible
public boolean isVisible()
-
setVisible
public void setVisible(boolean visible)
-
getAnnotationByteCodes
public List<AnnotationByteCode> getAnnotationByteCodes()
- Specified by:
getAnnotationByteCodesin interfaceGetAnnotationByteCodes
-
setAnnotationByteCodes
public void setAnnotationByteCodes(List<AnnotationByteCode> byteCodes)
-
nodes
public xyz.cofe.iter.Eterable<ByteCode> nodes()
Возвращает дочерние узлы
-
write
public void write(org.objectweb.asm.ClassWriter v)
- Specified by:
writein interfaceClazzWriter
-
-