Package xyz.cofe.trambda.bc.mth
Class MAnnotation
- java.lang.Object
-
- xyz.cofe.trambda.bc.mth.MAbstractBC
-
- xyz.cofe.trambda.bc.mth.MAnnotation
-
- All Implemented Interfaces:
Serializable,xyz.cofe.collection.ImTree<ByteCode>,xyz.cofe.collection.ImTreeWalk<ByteCode>,AnnotationDef,GetAnnotationByteCodes,ByteCode,MethodByteCode,MethodWriter
public class MAnnotation extends MAbstractBC implements ByteCode, AnnotationDef, GetAnnotationByteCodes, MethodWriter
Visits an annotation of this method.descriptorthe class descriptor of the annotation class.visibletrue if the annotation is visible at runtime.a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<AnnotationByteCode>annotationByteCodesprotected Stringdescriptorprotected booleanvisible
-
Constructor Summary
Constructors Constructor Description MAnnotation()Конструктор по умолчаниюMAnnotation(String descriptor, boolean visible)MAnnotation(MAnnotation sample)Конструктор копирования
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MAnnotationclone()List<AnnotationByteCode>getAnnotationByteCodes()StringgetDescriptor()booleanisVisible()xyz.cofe.iter.Eterable<ByteCode>nodes()Возвращает дочерние узлыvoidsetAnnotationByteCodes(List<AnnotationByteCode> byteCodes)voidsetDescriptor(String descriptor)voidsetVisible(boolean visible)StringtoString()voidwrite(org.objectweb.asm.MethodVisitor v, MethodWriterCtx ctx)
-
-
-
Field Detail
-
descriptor
protected String descriptor
-
visible
protected boolean visible
-
annotationByteCodes
protected List<AnnotationByteCode> annotationByteCodes
-
-
Constructor Detail
-
MAnnotation
public MAnnotation()
Конструктор по умолчанию
-
MAnnotation
public MAnnotation(String descriptor, boolean visible)
-
MAnnotation
public MAnnotation(MAnnotation sample)
Конструктор копирования- Parameters:
sample- образец
-
-
Method Detail
-
clone
public MAnnotation clone()
- Specified by:
clonein interfaceMethodByteCode- Specified by:
clonein classMAbstractBC
-
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.MethodVisitor v, MethodWriterCtx ctx)- Specified by:
writein interfaceMethodWriter
-
-