1 /* Generated By:JJTree: Do not edit this line. ASTAnnExpr.java Version 4.1 */ 2 /* JavaCCOptions:MULTI=true,NODE_USES_PARSER=true,VISITOR=false,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ 3 package org.jacop.fz; 4 5 public class ASTAnnExpr extends SimpleNode { ASTAnnExpr(int id)6 public ASTAnnExpr(int id) { 7 super(id); 8 } 9 ASTAnnExpr(Parser p, int id)10 public ASTAnnExpr(Parser p, int id) { 11 super(p, id); 12 } 13 14 // My additions 15 String id = ""; 16 boolean ident_present = false; 17 setIdent(String ID)18 void setIdent(String ID) { 19 ident_present = true; 20 id = ID; 21 } 22 getIdent()23 String getIdent() { 24 return id; 25 } 26 idPresent()27 boolean idPresent() { 28 return ident_present; 29 } 30 toString()31 public String toString() { 32 if (ident_present) 33 return super.toString() + "(ident): " + id; 34 else 35 return super.toString(); 36 } 37 } 38 /* JavaCC - OriginalChecksum=630861ca1db540584d08dcc361f5d889 (do not edit this line) */ 39