static DPattern wrap( DPattern p, LocatorImpl loc, Annotation anno ) { p.location = loc; if(anno!=null) p.annotation = anno.getResult(); return p; }
public ParsedPattern makePattern(ParsedPattern except, Location loc, Annotations anno) throws BuildException { p.except = (DPattern)except; if (anno!=null) { p.annotation = ((Annotation)anno).getResult(); } return p; } }
static DPattern wrap( DPattern p, LocatorImpl loc, Annotation anno ) { p.location = loc; if(anno!=null) p.annotation = anno.getResult(); return p; }
public ParsedPattern makePattern(ParsedPattern except, Location loc, Annotations anno) throws BuildException { p.except = (DPattern)except; if(anno!=null) p.annotation = ((Annotation)anno).getResult(); return p; } }
public ParsedPattern endGrammar(Location loc, Annotations anno) throws BuildException { // Harshit : Fixed possible NPE and issue in handling of annotations if (anno != null) { if (grammar.annotation != null) { grammar.annotation.contents.addAll(((Annotation) anno).getResult().contents); } } return grammar; }
public ParsedPattern endGrammar(Location loc, Annotations anno) throws BuildException { if(anno!=null) grammar.annotation = ((Annotation)anno).getResult(); if(additionalElementAnnotations!=null) { if(grammar.annotation==null) grammar.annotation = new DAnnotation(); grammar.annotation.contents.addAll(additionalElementAnnotations); } return grammar; }
public void define(String name, Combine combine, ParsedPattern pattern, Location loc, Annotations anno) throws BuildException { if(name==START) grammar.start = (DPattern)pattern; else { // TODO: handle combine DDefine d = grammar.getOrAdd(name); d.setPattern( (DPattern) pattern ); if(anno!=null) d.annotation = ((Annotation)anno).getResult(); } }
public void define(String name, Combine combine, ParsedPattern pattern, Location loc, Annotations anno) throws BuildException { if(name==START) { grammar.start = (DPattern)pattern; } else { // TODO: handle combine DDefine d = grammar.getOrAdd(name); d.setPattern( (DPattern) pattern ); if (anno!=null) { d.annotation = ((Annotation)anno).getResult(); } } }