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, wait
cast, getComment, isBlockWithAbruptCompletion, setComment, vm
public MAnnotation addAnntationAttribute(AnnotationAttribute annotation)
addAnntationAttribute
in interface Annotation
public AnnotationAttribute addAnntationAttribute(String name)
addAnntationAttribute
in interface Annotation
public AnnotationAttribute addAnntationAttribute(String name, Expression value)
addAnntationAttribute
in interface Annotation
public AnnotationAttribute getAnnotationAttribute(String name)
getAnnotationAttribute
in interface Annotation
public List<AnnotationAttribute> getAnnotationAttributes()
getAnnotationAttributes
in interface Annotation
public String getName()
getName
in interface Annotation
public String getText()
getText
in interface Annotation
public MAnnotation setName(String name)
setName
in interface Annotation
public MAnnotation setText(String text)
setText
in interface Annotation
public CodeWriter toCode(CodeWriter out)
Codeable
public void visit(IVisitor visitor)
Codeable
public <T> T cast(Class<T> clazz)
public Comment getComment()
Codeable
Codeable
object.getComment
in interface Codeable
public boolean isBlockWithAbruptCompletion()
isBlockWithAbruptCompletion
in interface Codeable
public net.sourceforge.jenesis4java.impl.MVM.MCodeable setComment(int type, String text)
Codeable
setComment
in interface Codeable
public VirtualMachine vm()
Codeable
Codeable
object
belongs.Copyright © 2000–2015 jenesis4java. All rights reserved.