public class MAnnotation extends Object implements Annotation
| Modifier and Type | Method and Description |
|---|---|
MAnnotation |
addAnntationAttribute(AnnotationAttribute annotation) |
AnnotationAttribute |
addAnntationAttribute(String name) |
AnnotationAttribute |
addAnntationAttribute(String name,
Expression value) |
<T> T |
cast(Class<T> clazz) |
AnnotationAttribute |
getAnnotationAttribute(String name) |
List<AnnotationAttribute> |
getAnnotationAttributes() |
Comment |
getComment()
Gets the comment for this
Codeable object. |
String |
getName() |
String |
getText() |
boolean |
isBlockWithAbruptCompletion() |
net.sourceforge.jenesis4java.impl.MVM.MCodeable |
setComment(int type,
String text)
Sets the comment to the given type and text.
|
MAnnotation |
setName(String name) |
MAnnotation |
setText(String text) |
CodeWriter |
toCode(CodeWriter out)
Renders the codeable object to the given writer and returns it.
|
String |
toString() |
void |
visit(IVisitor visitor)
walk through the code tree and alow every element to be excanged.
|
VirtualMachine |
vm()
Returns the virtual machine to which this
Codeable object
belongs. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcast, getComment, isBlockWithAbruptCompletion, setComment, vmpublic MAnnotation addAnntationAttribute(AnnotationAttribute annotation)
addAnntationAttribute in interface Annotationpublic AnnotationAttribute addAnntationAttribute(String name)
addAnntationAttribute in interface Annotationpublic AnnotationAttribute addAnntationAttribute(String name, Expression value)
addAnntationAttribute in interface Annotationpublic AnnotationAttribute getAnnotationAttribute(String name)
getAnnotationAttribute in interface Annotationpublic List<AnnotationAttribute> getAnnotationAttributes()
getAnnotationAttributes in interface Annotationpublic String getName()
getName in interface Annotationpublic String getText()
getText in interface Annotationpublic MAnnotation setName(String name)
setName in interface Annotationpublic MAnnotation setText(String text)
setText in interface Annotationpublic CodeWriter toCode(CodeWriter out)
Codeablepublic void visit(IVisitor visitor)
Codeablepublic <T> T cast(Class<T> clazz)
public Comment getComment()
CodeableCodeable object.getComment in interface Codeablepublic boolean isBlockWithAbruptCompletion()
isBlockWithAbruptCompletion in interface Codeablepublic net.sourceforge.jenesis4java.impl.MVM.MCodeable setComment(int type,
String text)
CodeablesetComment in interface Codeablepublic VirtualMachine vm()
CodeableCodeable object
belongs.Copyright © 2000–2015 jenesis4java. All rights reserved.