| java.lang.Object xtc.tree.Node xtc.tree.Annotation
All known Subclasses: xtc.tree.Pragma, xtc.tree.LineMarker, xtc.tree.Formatting, xtc.tree.SourceIdentity, xtc.tree.Comment,
Annotation | abstract public class Annotation extends Node (Code) | | The superclass of all annotations. An annotation adds information
(such as comments) to an abstract syntax tree node; it is usually
ignored while processing the AST.
author: Robert Grimm version: $Revision: 1.17 $ |
Field Summary | |
Node | node The annotated node. |
Constructor Summary | |
public | Annotation() Create a new, empty annotation. | public | Annotation(Node node) Create a new annotation for the specified node. |
Annotation | public Annotation()(Code) | | Create a new, empty annotation.
|
Annotation | public Annotation(Node node)(Code) | | Create a new annotation for the specified node.
Parameters: node - The node. |
getNode | public Node getNode()(Code) | | Get the annotated node.
The annotated node. |
innerMost | public Annotation innerMost()(Code) | | Return the inner-most annotation. This method strips all nested
annotations, starting with this annotation, until it reaches the
inner-most annotation.
The inner-most annotation. |
isAnnotation | public boolean isAnnotation()(Code) | | |
setNode | public void setNode(Node node)(Code) | | Set the annotated node.
Parameters: node - The new node. |
|
|