com.sun.xml.internal.rngom.ast.builder.ElementAnnotationBuilder Java Examples

The following examples show how to use com.sun.xml.internal.rngom.ast.builder.ElementAnnotationBuilder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DSchemaBuilderImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns, String localName, String prefix, LocatorImpl loc, CommentListImpl comments, Context context) {
    String qname;
    if(prefix==null)
        qname = localName;
    else
        qname = prefix+':'+localName;
    return new ElementAnnotationBuilderImpl(dom.createElementNS(ns,qname));
}
 
Example #2
Source File: DSchemaBuilderImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns, String localName, String prefix, LocatorImpl loc, CommentListImpl comments, Context context) {
    String qname;
    if(prefix==null)
        qname = localName;
    else
        qname = prefix+':'+localName;
    return new ElementAnnotationBuilderImpl(dom.createElementNS(ns,qname));
}
 
Example #3
Source File: CompactSyntax.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException {
CommentList comments = getComments();
Token t;
ElementAnnotationBuilder eab;
  t = jj_consume_token(PREFIXED_NAME);
  String qn = t.image;
  int colon = qn.indexOf(':');
  String prefix = qn.substring(0, colon);
  String ns = lookupPrefix(prefix, t);
  if (ns == this.inheritedNs) {
    error("inherited_annotation_namespace", t);
    ns = "";
  }
  else if (!nested && ns.equals(WellKnownNamespaces.RELAX_NG)) {
    error("relax_ng_namespace", t);
    ns = "";
  }
  else {
    if (ns.length() == 0)
      prefix = null;
  }
  eab = sb.makeElementAnnotationBuilder(ns, qn.substring(colon + 1), prefix,
                                        makeLocation(t), comments, getContext());
  AnnotationElementContent(eab);
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #4
Source File: CompactSyntax.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation Documentation() throws ParseException {
CommentList comments = getComments();
ElementAnnotationBuilder eab;
Token t;
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case DOCUMENTATION:
    t = jj_consume_token(DOCUMENTATION);
    break;
  case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    t = jj_consume_token(DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT);
    break;
  default:
    jj_la1[54] = jj_gen;
    jj_consume_token(-1);
    throw new ParseException();
  }
  eab = sb.makeElementAnnotationBuilder(WellKnownNamespaces.RELAX_NG_COMPATIBILITY_ANNOTATIONS,
                                        "documentation",
                                        getCompatibilityPrefix(),
                                        makeLocation(t),
                                        comments,
                                        getContext());
  eab.addText(mungeComment(t.image), makeLocation(t), null);
  label_19:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case DOCUMENTATION_CONTINUE:
      ;
      break;
    default:
      jj_la1[55] = jj_gen;
      break label_19;
    }
    t = jj_consume_token(DOCUMENTATION_CONTINUE);
                                eab.addText("\u005cn" + mungeComment(t.image), makeLocation(t), null);
  }
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #5
Source File: CompactSyntax.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation IdentifierAnnotationElement() throws ParseException {
CommentList comments = getComments();
LocatedString name;
ElementAnnotationBuilder eab;
  name = Identifier();
  eab = sb.makeElementAnnotationBuilder("", name.getString(), null,
                                        name.getLocation(), comments, getContext());
  AnnotationElementContent(eab);
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #6
Source File: DSchemaBuilderImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns, String localName, String prefix, LocatorImpl loc, CommentListImpl comments, Context context) {
    String qname;
    if(prefix==null)
        qname = localName;
    else
        qname = prefix+':'+localName;
    return new ElementAnnotationBuilderImpl(dom.createElementNS(ns,qname));
}
 
Example #7
Source File: SchemaBuilderHost.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns,
    String localName, String prefix, Location _loc, CommentList _comments,
    Context context) {
    LocationHost loc = cast(_loc);
    CommentListHost comments = (CommentListHost) _comments;

    return new ElementAnnotationBuilderHost(
        lhs.makeElementAnnotationBuilder(ns, localName, prefix, loc.lhs, comments==null?null:comments.lhs, context),
        rhs.makeElementAnnotationBuilder(ns, localName, prefix, loc.rhs, comments==null?null:comments.rhs, context) );
}
 
Example #8
Source File: DSchemaBuilderImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns, String localName, String prefix, LocatorImpl loc, CommentListImpl comments, Context context) {
    String qname;
    if(prefix==null)
        qname = localName;
    else
        qname = prefix+':'+localName;
    return new ElementAnnotationBuilderImpl(dom.createElementNS(ns,qname));
}
 
Example #9
Source File: CompactSyntax.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation Documentation() throws ParseException {
CommentList comments = getComments();
ElementAnnotationBuilder eab;
Token t;
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case DOCUMENTATION:
    t = jj_consume_token(DOCUMENTATION);
    break;
  case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    t = jj_consume_token(DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT);
    break;
  default:
    jj_la1[54] = jj_gen;
    jj_consume_token(-1);
    throw new ParseException();
  }
  eab = sb.makeElementAnnotationBuilder(WellKnownNamespaces.RELAX_NG_COMPATIBILITY_ANNOTATIONS,
                                        "documentation",
                                        getCompatibilityPrefix(),
                                        makeLocation(t),
                                        comments,
                                        getContext());
  eab.addText(mungeComment(t.image), makeLocation(t), null);
  label_19:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case DOCUMENTATION_CONTINUE:
      ;
      break;
    default:
      jj_la1[55] = jj_gen;
      break label_19;
    }
    t = jj_consume_token(DOCUMENTATION_CONTINUE);
                                eab.addText("\u005cn" + mungeComment(t.image), makeLocation(t), null);
  }
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #10
Source File: CompactSyntax.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException {
CommentList comments = getComments();
Token t;
ElementAnnotationBuilder eab;
  t = jj_consume_token(PREFIXED_NAME);
  String qn = t.image;
  int colon = qn.indexOf(':');
  String prefix = qn.substring(0, colon);
  String ns = lookupPrefix(prefix, t);
  if (ns == this.inheritedNs) {
    error("inherited_annotation_namespace", t);
    ns = "";
  }
  else if (!nested && ns.equals(WellKnownNamespaces.RELAX_NG)) {
    error("relax_ng_namespace", t);
    ns = "";
  }
  else {
    if (ns.length() == 0)
      prefix = null;
  }
  eab = sb.makeElementAnnotationBuilder(ns, qn.substring(colon + 1), prefix,
                                        makeLocation(t), comments, getContext());
  AnnotationElementContent(eab);
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #11
Source File: CompactSyntax.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation UnprefixedAnnotationElement() throws ParseException {
CommentList comments = getComments();
LocatedString name;
ElementAnnotationBuilder eab;
  name = UnprefixedName();
  eab = sb.makeElementAnnotationBuilder("", name.getString(), null,
                                        name.getLocation(), comments, getContext());
  AnnotationElementContent(eab);
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #12
Source File: CompactSyntax.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation IdentifierAnnotationElement() throws ParseException {
CommentList comments = getComments();
LocatedString name;
ElementAnnotationBuilder eab;
  name = Identifier();
  eab = sb.makeElementAnnotationBuilder("", name.getString(), null,
                                        name.getLocation(), comments, getContext());
  AnnotationElementContent(eab);
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #13
Source File: CompactSyntax.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation IdentifierAnnotationElement() throws ParseException {
CommentList comments = getComments();
LocatedString name;
ElementAnnotationBuilder eab;
  name = Identifier();
  eab = sb.makeElementAnnotationBuilder("", name.getString(), null,
                                        name.getLocation(), comments, getContext());
  AnnotationElementContent(eab);
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #14
Source File: SchemaBuilderHost.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns,
    String localName, String prefix, Location _loc, CommentList _comments,
    Context context) {
    LocationHost loc = cast(_loc);
    CommentListHost comments = (CommentListHost) _comments;

    return new ElementAnnotationBuilderHost(
        lhs.makeElementAnnotationBuilder(ns, localName, prefix, loc.lhs, comments==null?null:comments.lhs, context),
        rhs.makeElementAnnotationBuilder(ns, localName, prefix, loc.rhs, comments==null?null:comments.rhs, context) );
}
 
Example #15
Source File: CompactSyntax.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation UnprefixedAnnotationElement() throws ParseException {
CommentList comments = getComments();
LocatedString name;
ElementAnnotationBuilder eab;
  name = UnprefixedName();
  eab = sb.makeElementAnnotationBuilder("", name.getString(), null,
                                        name.getLocation(), comments, getContext());
  AnnotationElementContent(eab);
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #16
Source File: SchemaBuilderHost.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns,
    String localName, String prefix, Location _loc, CommentList _comments,
    Context context) {
    LocationHost loc = cast(_loc);
    CommentListHost comments = (CommentListHost) _comments;

    return new ElementAnnotationBuilderHost(
        lhs.makeElementAnnotationBuilder(ns, localName, prefix, loc.lhs, comments==null?null:comments.lhs, context),
        rhs.makeElementAnnotationBuilder(ns, localName, prefix, loc.rhs, comments==null?null:comments.rhs, context) );
}
 
Example #17
Source File: CompactSyntax.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException {
CommentList comments = getComments();
Token t;
ElementAnnotationBuilder eab;
  t = jj_consume_token(PREFIXED_NAME);
  String qn = t.image;
  int colon = qn.indexOf(':');
  String prefix = qn.substring(0, colon);
  String ns = lookupPrefix(prefix, t);
  if (ns == this.inheritedNs) {
    error("inherited_annotation_namespace", t);
    ns = "";
  }
  else if (!nested && ns.equals(WellKnownNamespaces.RELAX_NG)) {
    error("relax_ng_namespace", t);
    ns = "";
  }
  else {
    if (ns.length() == 0)
      prefix = null;
  }
  eab = sb.makeElementAnnotationBuilder(ns, qn.substring(colon + 1), prefix,
                                        makeLocation(t), comments, getContext());
  AnnotationElementContent(eab);
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #18
Source File: CompactSyntax.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation Documentation() throws ParseException {
CommentList comments = getComments();
ElementAnnotationBuilder eab;
Token t;
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case DOCUMENTATION:
    t = jj_consume_token(DOCUMENTATION);
    break;
  case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    t = jj_consume_token(DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT);
    break;
  default:
    jj_la1[54] = jj_gen;
    jj_consume_token(-1);
    throw new ParseException();
  }
  eab = sb.makeElementAnnotationBuilder(WellKnownNamespaces.RELAX_NG_COMPATIBILITY_ANNOTATIONS,
                                        "documentation",
                                        getCompatibilityPrefix(),
                                        makeLocation(t),
                                        comments,
                                        getContext());
  eab.addText(mungeComment(t.image), makeLocation(t), null);
  label_19:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case DOCUMENTATION_CONTINUE:
      ;
      break;
    default:
      jj_la1[55] = jj_gen;
      break label_19;
    }
    t = jj_consume_token(DOCUMENTATION_CONTINUE);
                                eab.addText("\u005cn" + mungeComment(t.image), makeLocation(t), null);
  }
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #19
Source File: CompactSyntax.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException {
CommentList comments = getComments();
Token t;
ElementAnnotationBuilder eab;
  t = jj_consume_token(PREFIXED_NAME);
  String qn = t.image;
  int colon = qn.indexOf(':');
  String prefix = qn.substring(0, colon);
  String ns = lookupPrefix(prefix, t);
  if (ns == this.inheritedNs) {
    error("inherited_annotation_namespace", t);
    ns = "";
  }
  else if (!nested && ns.equals(WellKnownNamespaces.RELAX_NG)) {
    error("relax_ng_namespace", t);
    ns = "";
  }
  else {
    if (ns.length() == 0)
      prefix = null;
  }
  eab = sb.makeElementAnnotationBuilder(ns, qn.substring(colon + 1), prefix,
                                        makeLocation(t), comments, getContext());
  AnnotationElementContent(eab);
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #20
Source File: CompactSyntax.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation UnprefixedAnnotationElement() throws ParseException {
CommentList comments = getComments();
LocatedString name;
ElementAnnotationBuilder eab;
  name = UnprefixedName();
  eab = sb.makeElementAnnotationBuilder("", name.getString(), null,
                                        name.getLocation(), comments, getContext());
  AnnotationElementContent(eab);
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #21
Source File: CompactSyntax.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation IdentifierAnnotationElement() throws ParseException {
CommentList comments = getComments();
LocatedString name;
ElementAnnotationBuilder eab;
  name = Identifier();
  eab = sb.makeElementAnnotationBuilder("", name.getString(), null,
                                        name.getLocation(), comments, getContext());
  AnnotationElementContent(eab);
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #22
Source File: CompactSyntax.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation Documentation() throws ParseException {
CommentList comments = getComments();
ElementAnnotationBuilder eab;
Token t;
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case DOCUMENTATION:
    t = jj_consume_token(DOCUMENTATION);
    break;
  case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    t = jj_consume_token(DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT);
    break;
  default:
    jj_la1[54] = jj_gen;
    jj_consume_token(-1);
    throw new ParseException();
  }
  eab = sb.makeElementAnnotationBuilder(WellKnownNamespaces.RELAX_NG_COMPATIBILITY_ANNOTATIONS,
                                        "documentation",
                                        getCompatibilityPrefix(),
                                        makeLocation(t),
                                        comments,
                                        getContext());
  eab.addText(mungeComment(t.image), makeLocation(t), null);
  label_19:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case DOCUMENTATION_CONTINUE:
      ;
      break;
    default:
      jj_la1[55] = jj_gen;
      break label_19;
    }
    t = jj_consume_token(DOCUMENTATION_CONTINUE);
                                eab.addText("\u005cn" + mungeComment(t.image), makeLocation(t), null);
  }
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #23
Source File: SchemaBuilderHost.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns,
    String localName, String prefix, Location _loc, CommentList _comments,
    Context context) {
    LocationHost loc = cast(_loc);
    CommentListHost comments = (CommentListHost) _comments;

    return new ElementAnnotationBuilderHost(
        lhs.makeElementAnnotationBuilder(ns, localName, prefix, loc.lhs, comments==null?null:comments.lhs, context),
        rhs.makeElementAnnotationBuilder(ns, localName, prefix, loc.rhs, comments==null?null:comments.rhs, context) );
}
 
Example #24
Source File: DSchemaBuilderImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns, String localName, String prefix, LocatorImpl loc, CommentListImpl comments, Context context) {
    String qname;
    if(prefix==null)
        qname = localName;
    else
        qname = prefix+':'+localName;
    return new ElementAnnotationBuilderImpl(dom.createElementNS(ns,qname));
}
 
Example #25
Source File: DSchemaBuilderImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns, String localName, String prefix, LocatorImpl loc, CommentListImpl comments, Context context) {
    String qname;
    if(prefix==null)
        qname = localName;
    else
        qname = prefix+':'+localName;
    return new ElementAnnotationBuilderImpl(dom.createElementNS(ns,qname));
}
 
Example #26
Source File: CompactSyntax.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation Documentation() throws ParseException {
CommentList comments = getComments();
ElementAnnotationBuilder eab;
Token t;
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case DOCUMENTATION:
    t = jj_consume_token(DOCUMENTATION);
    break;
  case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    t = jj_consume_token(DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT);
    break;
  default:
    jj_la1[54] = jj_gen;
    jj_consume_token(-1);
    throw new ParseException();
  }
  eab = sb.makeElementAnnotationBuilder(WellKnownNamespaces.RELAX_NG_COMPATIBILITY_ANNOTATIONS,
                                        "documentation",
                                        getCompatibilityPrefix(),
                                        makeLocation(t),
                                        comments,
                                        getContext());
  eab.addText(mungeComment(t.image), makeLocation(t), null);
  label_19:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case DOCUMENTATION_CONTINUE:
      ;
      break;
    default:
      jj_la1[55] = jj_gen;
      break label_19;
    }
    t = jj_consume_token(DOCUMENTATION_CONTINUE);
                                eab.addText("\u005cn" + mungeComment(t.image), makeLocation(t), null);
  }
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #27
Source File: CompactSyntax.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation PrefixedAnnotationElement(boolean nested) throws ParseException {
CommentList comments = getComments();
Token t;
ElementAnnotationBuilder eab;
  t = jj_consume_token(PREFIXED_NAME);
  String qn = t.image;
  int colon = qn.indexOf(':');
  String prefix = qn.substring(0, colon);
  String ns = lookupPrefix(prefix, t);
  if (ns == this.inheritedNs) {
    error("inherited_annotation_namespace", t);
    ns = "";
  }
  else if (!nested && ns.equals(WellKnownNamespaces.RELAX_NG)) {
    error("relax_ng_namespace", t);
    ns = "";
  }
  else {
    if (ns.length() == 0)
      prefix = null;
  }
  eab = sb.makeElementAnnotationBuilder(ns, qn.substring(colon + 1), prefix,
                                        makeLocation(t), comments, getContext());
  AnnotationElementContent(eab);
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #28
Source File: CompactSyntax.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation UnprefixedAnnotationElement() throws ParseException {
CommentList comments = getComments();
LocatedString name;
ElementAnnotationBuilder eab;
  name = UnprefixedName();
  eab = sb.makeElementAnnotationBuilder("", name.getString(), null,
                                        name.getLocation(), comments, getContext());
  AnnotationElementContent(eab);
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #29
Source File: CompactSyntax.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
final public ParsedElementAnnotation IdentifierAnnotationElement() throws ParseException {
CommentList comments = getComments();
LocatedString name;
ElementAnnotationBuilder eab;
  name = Identifier();
  eab = sb.makeElementAnnotationBuilder("", name.getString(), null,
                                        name.getLocation(), comments, getContext());
  AnnotationElementContent(eab);
  {if (true) return eab.makeElementAnnotation();}
  throw new Error("Missing return statement in function");
}
 
Example #30
Source File: SchemaBuilderHost.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns,
    String localName, String prefix, Location _loc, CommentList _comments,
    Context context) {
    LocationHost loc = cast(_loc);
    CommentListHost comments = (CommentListHost) _comments;

    return new ElementAnnotationBuilderHost(
        lhs.makeElementAnnotationBuilder(ns, localName, prefix, loc.lhs, comments==null?null:comments.lhs, context),
        rhs.makeElementAnnotationBuilder(ns, localName, prefix, loc.rhs, comments==null?null:comments.rhs, context) );
}