Package mockit.asm
Class BaseWriter
java.lang.Object
mockit.asm.BaseWriter
- Direct Known Subclasses:
ClassVisitor
,FieldVisitor
,MethodVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AnnotationVisitor
The runtime visible annotations of this class/field/method.protected int
The access flags of this class, field, or method.protected ConstantPoolGeneration
The dynamically generated constant pool of the class being built/modified. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
BaseWriter
(ConstantPoolGeneration cp, int classOrMemberAccess) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
createMarkerAttributes
(int classVersion) protected final @org.checkerframework.checker.index.qual.NonNegative int
final ConstantPoolGeneration
Returns theconstant pool generation helper object
used by this writer.protected final @org.checkerframework.checker.index.qual.NonNegative int
protected final @org.checkerframework.checker.index.qual.NonNegative int
protected void
put
(ByteVector out) protected static void
put
(ByteVector out, List<? extends BaseWriter> writers) protected final void
putAccess
(ByteVector out, int baseMask) protected final void
putAnnotations
(ByteVector out) protected final void
visitAnnotation
(String desc) Visits an annotation of the class/field/method being visited.void
visitEnd()
Visits the end of the class/field/method being visited.
-
Field Details
-
cp
The dynamically generated constant pool of the class being built/modified. -
classOrMemberAccess
protected int classOrMemberAccessThe access flags of this class, field, or method. -
annotations
The runtime visible annotations of this class/field/method.
-
-
Constructor Details
-
BaseWriter
protected BaseWriter() -
BaseWriter
-
-
Method Details
-
getConstantPoolGeneration
Returns theconstant pool generation helper object
used by this writer.- Returns:
- the constant pool generation
-
visitAnnotation
Visits an annotation of the class/field/method being visited.- Parameters:
desc
- the descriptor of the annotation type- Returns:
- a visitor to visit the annotation values, or
null
if this visitor is not interested in visiting the annotation
-
visitEnd
public void visitEnd()Visits the end of the class/field/method being visited. This method, which is the last one to be called, is used to inform the visitor that all the annotations and attributes of the class/field/method have been visited. -
createMarkerAttributes
protected final void createMarkerAttributes(int classVersion) -
getAnnotationsSize
protected final @org.checkerframework.checker.index.qual.NonNegative int getAnnotationsSize() -
getMarkerAttributeCount
protected final @org.checkerframework.checker.index.qual.NonNegative int getMarkerAttributeCount() -
getMarkerAttributesSize
protected final @org.checkerframework.checker.index.qual.NonNegative int getMarkerAttributesSize() -
putAccess
-
putMarkerAttributes
-
putAnnotations
-
put
-
put
-