public ParsedPattern makeGroup(List patterns, Location _loc, Annotations _anno) throws BuildException { List<ParsedPattern> lp = new ArrayList<ParsedPattern>(); List<ParsedPattern> rp = new ArrayList<ParsedPattern>(); for( int i=0; i<patterns.size(); i++ ) { lp.add( ((ParsedPatternHost)patterns.get(i)).lhs); rp.add( ((ParsedPatternHost)patterns.get(i)).rhs); } LocationHost loc = cast(_loc); AnnotationsHost anno = cast(_anno); return new ParsedPatternHost( lhs.makeGroup(lp, loc.lhs, anno.lhs), rhs.makeGroup(rp, loc.rhs, anno.rhs)); }
public ParsedPattern expandPattern(ParsedPattern p) throws BuildException, IllegalSchemaException { // just return the result from the user-given SchemaBuilder ParsedPatternHost r = (ParsedPatternHost)super.expandPattern(p); return r.rhs; } }
public ParsedPattern makeChoice(List patterns, Location _loc, Annotations _anno) throws BuildException { List<ParsedPattern> lp = new ArrayList<ParsedPattern>(); List<ParsedPattern> rp = new ArrayList<ParsedPattern>(); for( int i=0; i<patterns.size(); i++ ) { lp.add( ((ParsedPatternHost)patterns.get(i)).lhs); rp.add( ((ParsedPatternHost)patterns.get(i)).rhs); } LocationHost loc = cast(_loc); AnnotationsHost anno = cast(_anno); return new ParsedPatternHost( lhs.makeChoice(lp, loc.lhs, anno.lhs), rhs.makeChoice(rp, loc.rhs, anno.rhs)); }
public ParsedPattern expandPattern(ParsedPattern p) throws BuildException, IllegalSchemaException { // just return the result from the user-given SchemaBuilder ParsedPatternHost r = (ParsedPatternHost)super.expandPattern(p); return r.rhs; } }
public ParsedPattern makeInterleave(List patterns, Location _loc, Annotations _anno) throws BuildException { List<ParsedPattern> lp = new ArrayList<ParsedPattern>(); List<ParsedPattern> rp = new ArrayList<ParsedPattern>(); for( int i=0; i<patterns.size(); i++ ) { lp.add( ((ParsedPatternHost)patterns.get(i)).lhs); rp.add( ((ParsedPatternHost)patterns.get(i)).rhs); } LocationHost loc = cast(_loc); AnnotationsHost anno = cast(_anno); return new ParsedPatternHost( lhs.makeInterleave(lp, loc.lhs, anno.lhs), rhs.makeInterleave(rp, loc.rhs, anno.rhs)); }
public ParsedPattern makeMixed(ParsedPattern _p, Location _loc, Annotations _anno) throws BuildException { ParsedPatternHost p = (ParsedPatternHost) _p; LocationHost loc = cast(_loc); AnnotationsHost anno = cast(_anno); return new ParsedPatternHost( lhs.makeMixed(p.lhs, loc.lhs, anno.lhs), rhs.makeMixed(p.rhs, loc.rhs, anno.rhs)); }
public ParsedPattern makeZeroOrMore(ParsedPattern _p, Location _loc, Annotations _anno) throws BuildException { ParsedPatternHost p = (ParsedPatternHost) _p; LocationHost loc = cast(_loc); AnnotationsHost anno = cast(_anno); return new ParsedPatternHost( lhs.makeZeroOrMore(p.lhs, loc.lhs, anno.lhs), rhs.makeZeroOrMore(p.rhs, loc.rhs, anno.rhs)); }
public ParsedPattern makeOneOrMore(ParsedPattern _p, Location _loc, Annotations _anno) throws BuildException { ParsedPatternHost p = (ParsedPatternHost) _p; LocationHost loc = cast(_loc); AnnotationsHost anno = cast(_anno); return new ParsedPatternHost( lhs.makeOneOrMore(p.lhs, loc.lhs, anno.lhs), rhs.makeOneOrMore(p.rhs, loc.rhs, anno.rhs)); }
public ParsedPattern makeInterleave(List patterns, Location _loc, Annotations _anno) throws BuildException { List<ParsedPattern> lp = new ArrayList<ParsedPattern>(); List<ParsedPattern> rp = new ArrayList<ParsedPattern>(); for( int i=0; i<patterns.size(); i++ ) { lp.add( ((ParsedPatternHost)patterns.get(i)).lhs); rp.add( ((ParsedPatternHost)patterns.get(i)).rhs); } LocationHost loc = cast(_loc); AnnotationsHost anno = cast(_anno); return new ParsedPatternHost( lhs.makeInterleave(lp, loc.lhs, anno.lhs), rhs.makeInterleave(rp, loc.rhs, anno.rhs)); }
public ParsedPattern makeAttribute(ParsedNameClass _nc, ParsedPattern _p, Location _loc, Annotations _anno) throws BuildException { ParsedNameClassHost nc = (ParsedNameClassHost) _nc; ParsedPatternHost p = (ParsedPatternHost) _p; LocationHost loc = cast(_loc); AnnotationsHost anno = cast(_anno); return new ParsedPatternHost( lhs.makeAttribute(nc.lhs, p.lhs, loc.lhs, anno.lhs), rhs.makeAttribute(nc.rhs, p.rhs, loc.rhs, anno.rhs)); }
public ParsedPattern makeChoice(List patterns, Location _loc, Annotations _anno) throws BuildException { List<ParsedPattern> lp = new ArrayList<ParsedPattern>(); List<ParsedPattern> rp = new ArrayList<ParsedPattern>(); for( int i=0; i<patterns.size(); i++ ) { lp.add( ((ParsedPatternHost)patterns.get(i)).lhs); rp.add( ((ParsedPatternHost)patterns.get(i)).rhs); } LocationHost loc = cast(_loc); AnnotationsHost anno = cast(_anno); return new ParsedPatternHost( lhs.makeChoice(lp, loc.lhs, anno.lhs), rhs.makeChoice(rp, loc.rhs, anno.rhs)); }
public ParsedPattern makeGroup(List patterns, Location _loc, Annotations _anno) throws BuildException { List<ParsedPattern> lp = new ArrayList<ParsedPattern>(); List<ParsedPattern> rp = new ArrayList<ParsedPattern>(); for( int i=0; i<patterns.size(); i++ ) { lp.add( ((ParsedPatternHost)patterns.get(i)).lhs); rp.add( ((ParsedPatternHost)patterns.get(i)).rhs); } LocationHost loc = cast(_loc); AnnotationsHost anno = cast(_anno); return new ParsedPatternHost( lhs.makeGroup(lp, loc.lhs, anno.lhs), rhs.makeGroup(rp, loc.rhs, anno.rhs)); }
public ParsedPattern makeAttribute(ParsedNameClass _nc, ParsedPattern _p, Location _loc, Annotations _anno) throws BuildException { ParsedNameClassHost nc = (ParsedNameClassHost) _nc; ParsedPatternHost p = (ParsedPatternHost) _p; LocationHost loc = cast(_loc); AnnotationsHost anno = cast(_anno); return new ParsedPatternHost( lhs.makeAttribute(nc.lhs, p.lhs, loc.lhs, anno.lhs), rhs.makeAttribute(nc.rhs, p.rhs, loc.rhs, anno.rhs)); }
public ParsedPattern makeValue(String datatypeLibrary, String type, String value, Context c, String ns, Location _loc, Annotations _anno) throws BuildException { LocationHost loc = cast(_loc); AnnotationsHost anno = cast(_anno); return new ParsedPatternHost( lhs.makeValue(datatypeLibrary,type,value,c,ns,loc.lhs,anno.lhs), rhs.makeValue(datatypeLibrary,type,value,c,ns,loc.rhs,anno.rhs)); }
public ParsedPattern makeExternalRef(Parseable current, String uri, String ns, Scope _scope, Location _loc, Annotations _anno) throws BuildException, IllegalSchemaException { ScopeHost scope = (ScopeHost) _scope; LocationHost loc = cast(_loc); AnnotationsHost anno = cast(_anno); return new ParsedPatternHost( lhs.makeExternalRef(current, uri, ns, scope.lhs, loc.lhs, anno.lhs), rhs.makeExternalRef(current, uri, ns, scope.rhs, loc.rhs, anno.rhs) ); }
public ParsedPattern makeList(ParsedPattern _p, Location _loc, Annotations _anno) throws BuildException { ParsedPatternHost p = (ParsedPatternHost) _p; LocationHost loc = cast(_loc); AnnotationsHost anno = cast(_anno); return new ParsedPatternHost( lhs.makeList(p.lhs, loc.lhs, anno.lhs), rhs.makeList(p.rhs, loc.rhs, anno.rhs)); }