1 28 29 package com.caucho.relaxng.pattern; 30 31 import com.caucho.relaxng.RelaxException; 32 import com.caucho.relaxng.program.EmptyItem; 33 import com.caucho.relaxng.program.Item; 34 35 38 public class EmptyPattern extends Pattern { 39 42 public EmptyPattern() 43 { 44 } 45 46 49 public Item createItem(GrammarPattern grammar) 50 throws RelaxException 51 { 52 return EmptyItem.create(); 53 } 54 55 58 public String toProduction() 59 { 60 return "empty"; 61 } 62 63 public boolean equals(Object o) 64 { 65 return o instanceof EmptyPattern; 66 } 67 68 71 public String toString() 72 { 73 return "EmptyPattern[]"; 74 } 75 } 76 77 | Popular Tags |