Top Fields Constructors Methods
com.sun.tools.rngom.digested

pack-priv Class ElementAnnotationBuilderImpl

extends Object
implements ElementAnnotationBuilder
Class Inheritance
All Implemented Interfaces
com.sun.tools.rngom.ast.builder.ElementAnnotationBuilder, com.sun.tools.rngom.ast.builder.Annotations
Imports
com.sun.tools.rngom.ast.om.ParsedElementAnnotation, .Location, com.sun.tools.rngom.ast.builder.BuildException, .CommentList, .ElementAnnotationBuilder, org.w3c.dom.Element

Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private final Element
e

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addAttribute(String ns, String localName, String prefix, String value, Location loc)

Implements com.sun.tools.rngom.ast.builder.Annotations.addAttribute.

Called for an attribute annotation.

public void
addComment(CommentList<L extends Location> comments)

Implements com.sun.tools.rngom.ast.builder.Annotations.addComment.

Adds comments following the last initial child element annotation.

public void
public void
public void
addText(String value, Location loc, CommentList<L extends Location> comments)

Implements com.sun.tools.rngom.ast.builder.ElementAnnotationBuilder.addText.

Called when a child text is found.

public ParsedElementAnnotation
makeElementAnnotation()

Implements com.sun.tools.rngom.ast.builder.ElementAnnotationBuilder.makeElementAnnotation.

Called at the end to build an application data structure.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

eback to summary
private final Element e

Constructor Detail

ElementAnnotationBuilderImplback to summary
public ElementAnnotationBuilderImpl(Element e)

Method Detail

addAttributeback to summary
public void addAttribute(String ns, String localName, String prefix, String value, Location loc) throws BuildException

Implements com.sun.tools.rngom.ast.builder.Annotations.addAttribute.

Doc from com.sun.tools.rngom.ast.builder.Annotations.addAttribute.

Called for an attribute annotation.

addCommentback to summary
public void addComment(CommentList<L extends Location> comments) throws BuildException

Implements com.sun.tools.rngom.ast.builder.Annotations.addComment.

Doc from com.sun.tools.rngom.ast.builder.Annotations.addComment.

Adds comments following the last initial child element annotation.

addElementback to summary
public void addElement(ParsedElementAnnotation ea) throws BuildException

Implements com.sun.tools.rngom.ast.builder.Annotations.addElement.

Doc from com.sun.tools.rngom.ast.builder.Annotations.addElement.

Called for a child element annotation.

addLeadingCommentback to summary
public void addLeadingComment(CommentList<L extends Location> comments) throws BuildException

Implements com.sun.tools.rngom.ast.builder.Annotations.addLeadingComment.

addTextback to summary
public void addText(String value, Location loc, CommentList<L extends Location> comments) throws BuildException

Implements com.sun.tools.rngom.ast.builder.ElementAnnotationBuilder.addText.

Doc from com.sun.tools.rngom.ast.builder.ElementAnnotationBuilder.addText.

Called when a child text is found.

makeElementAnnotationback to summary
public ParsedElementAnnotation makeElementAnnotation() throws BuildException

Implements com.sun.tools.rngom.ast.builder.ElementAnnotationBuilder.makeElementAnnotation.

Doc from com.sun.tools.rngom.ast.builder.ElementAnnotationBuilder.makeElementAnnotation.

Called at the end to build an application data structure.