KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thaiopensource > relaxng > impl > StartTagOpenRecoverDerivFunction


1 package com.thaiopensource.relaxng.impl;
2
3 import com.thaiopensource.xml.util.Name;
4
5 class StartTagOpenRecoverDerivFunction extends StartTagOpenDerivFunction {
6   StartTagOpenRecoverDerivFunction(Name name, ValidatorPatternBuilder builder) {
7     super(name, builder);
8   }
9
10   public Object JavaDoc caseGroup(GroupPattern p) {
11     Pattern tem = (Pattern)super.caseGroup(p);
12     if (p.getOperand1().isNullable())
13       return tem;
14     return getPatternBuilder().makeChoice(tem, memoApply(p.getOperand2()));
15  }
16
17   PatternMemo apply(PatternMemo memo) {
18     return memo.startTagOpenRecoverDeriv(this);
19   }
20 }
21
Popular Tags