1 /* Generated By:JJTree: Do not edit this line. JavaResultType.java */
2
3 package net.sourceforge.jane.jjtree;
4
5 public class JavaResultType extends SimpleNode
6 implements JavaParserConstants {
7
8 private boolean isVoid;
9
10 public JavaResultType(int id) {
11 super(id);
12 }
13
14 public JavaResultType(JavaParser p, int id) {
15 super(p, id);
16 }
17
18 public void jjtClose() {
19 Token tok = parser.getToken(0);
20 isVoid = (tok.kind == VOID);
21 }
22
23 /*** Accept the visitor. **/
24 public Object jjtAccept(JavaParserVisitor visitor, Object data) {
25 return visitor.visit(this, data);
26 }
27
28 /***
29 * Returns <code>true</code> if the return type is void.
30 */
31 public boolean isVoid() {
32 return isVoid;
33 }
34
35 /***
36 * Returns the type.
37 */
38 public String getValue() {
39 if (isVoid())
40 return JJTreeUtils.getNormalizedTokenImage(VOID);
41 return ((JavaType) jjtGetChild(0)).getValue();
42 }
43
44 }
This page was automatically generated by Maven