1 28 29 package com.caucho.es.parser; 30 31 import com.caucho.es.ESBase; 32 import com.caucho.es.ESException; 33 34 import java.io.IOException ; 35 36 39 class RegexpExpr extends Expr { 40 private ESBase value; 41 private String flags; 42 43 RegexpExpr(Block block, ESBase value, String flags) 44 throws ESException 45 { 46 super(block); 47 48 this.value = value; 49 this.flags = flags; 50 } 51 52 void printImpl() throws IOException  53 { 54 cl.print("new ESRegexp(\""); 55 block.function.cl.printString(value.toString()); 56 cl.print("\", \""); 57 block.function.cl.printString(flags); 58 cl.print("\")"); 59 } 60 } 61 | Popular Tags |