1 28 29 package com.caucho.es.parser; 30 31 import java.io.IOException ; 32 33 36 class TopExpr extends Expr { 37 Expr child; 38 Expr type; 39 40 TopExpr(Block block, Expr child, Expr type) 41 { 42 super(block); 43 44 this.child = child; 45 this.type = type; 46 } 47 48 int getType() 49 { 50 return type.getType(); 51 } 52 53 Expr getTypeExpr() 54 { 55 return type; 56 } 57 58 void setUsed() 59 { 60 child.setUsed(); 61 } 62 63 void print() throws IOException  64 { 65 if (type.getType() == TYPE_INTEGER) 66 child.printInt32(); 67 else 68 child.print(); 69 } 70 } 71 | Popular Tags |