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 StringtypePathprotected inttypeRefprotected 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
-
typePath
protected String typePath
-
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)
-
-
Method Detail
-
clone
public CTypeAnnotation clone()
- Specified by:
clonein interfaceClsByteCode- Overrides:
clonein classObject
-
configure
public CTypeAnnotation configure(Consumer<CTypeAnnotation> conf)
-
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
-
-