public class EnumConstantDeclExt extends JL5AnnotatedElementExt
annotations
Constructor and Description |
---|
EnumConstantDeclExt() |
EnumConstantDeclExt(java.util.List<AnnotationElem> annotations) |
Modifier and Type | Method and Description |
---|---|
protected Declaration |
declaration()
Return the Declaration associated with this AST node.
|
Node |
disambiguateOverride(Node parent,
AmbiguityRemover ar)
Disambiguate the AST.
|
void |
prettyPrint(CodeWriter w,
PrettyPrinter tr)
Pretty-print the AST using the given
CodeWriter . |
void |
setAnnotations(Annotations annotations)
Set the annotations on the appropriate type object associated with
this AnnotatedElement.
|
annotationCheck, annotationElems, annotationElems, annotationElems, typeCheck, visitChildren
acceptCFG, firstChild, node
addDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, copy, copy, disambiguate, disambiguateEnter, dump, dump, dump, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, ext, ext, extRewrite, extRewriteEnter, init, initPred, pred, prettyPrint, prettyPrint, prettyPrint, prettyPrint, print, printBlock, printSubStmt, superLang, throwTypes, toString, typeCheckEnter, typeCheckOverride, visitChild, visitList
public EnumConstantDeclExt()
public EnumConstantDeclExt(java.util.List<AnnotationElem> annotations)
public Node disambiguateOverride(Node parent, AmbiguityRemover ar) throws SemanticException
NodeOps
override()
method of the
visitor. If this method returns non-null, the node's children
will not be visited automatically. Thus, the method should check
both the node this
and it's children, usually by
invoking visitChildren
with tc
or
with another visitor, returning a non-null node. OR, the method
should do nothing and simply return null
to allow
enter
, visitChildren
, and leave
to be invoked on the node.
The default implementation returns null
.
Overriding of this method is discouraged, but sometimes necessary.disambiguateOverride
in interface NodeOps
disambiguateOverride
in class Ext_c
ar
- The visitor which disambiguates.SemanticException
public void prettyPrint(CodeWriter w, PrettyPrinter tr)
NodeOps
CodeWriter
.prettyPrint
in interface NodeOps
prettyPrint
in class JL5AnnotatedElementExt
w
- The code writer to which to write.tr
- The pretty printer. This is not a visitor.protected Declaration declaration()
JL5AnnotatedElementExt
declaration
in class JL5AnnotatedElementExt
public void setAnnotations(Annotations annotations)
AnnotatedElement
setAnnotations
in interface AnnotatedElement
setAnnotations
in class JL5AnnotatedElementExt