com.google.sitebricks.compiler
Class AnnotationNode

java.lang.Object
  extended by org.jsoup.nodes.Node
      extended by org.jsoup.nodes.TextNode
          extended by com.google.sitebricks.compiler.AnnotationNode
All Implemented Interfaces:
Cloneable

public class AnnotationNode
extends org.jsoup.nodes.TextNode

Based on jsoup.nodes.TextNode by Jonathan Hedley, jonathan@hedley.net AnnotationNode is for Sitebricks text annotations such as


Constructor Summary
AnnotationNode(String annotation)
           
AnnotationNode(String annotation, String baseUri)
          Create a new AnnotationNode representing the supplied (unencoded) text).
 
Method Summary
 AnnotationNode annotation(String annotation)
          Set the annotation of this node.
 org.jsoup.nodes.Node apply(org.jsoup.nodes.Node annotate)
           
 String nodeName()
           
 
Methods inherited from class org.jsoup.nodes.TextNode
absUrl, attr, attr, attributes, createFromEncoded, getWholeText, hasAttr, isBlank, removeAttr, splitText, text, text, toString
 
Methods inherited from class org.jsoup.nodes.Node
addChildren, addChildren, after, baseUri, before, childNode, childNodes, childNodesAsArray, clone, doClone, equals, hashCode, indent, nextSibling, outerHtml, outerHtml, ownerDocument, parent, previousSibling, remove, removeChild, replaceChild, replaceWith, setBaseUri, setParentNode, setSiblingIndex, siblingIndex, siblingNodes, wrap
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationNode

public AnnotationNode(String annotation,
                      String baseUri)
Create a new AnnotationNode representing the supplied (unencoded) text).

Parameters:
annotation - raw text
baseUri - base uri
See Also:
TextNode.createFromEncoded(String, String)

AnnotationNode

public AnnotationNode(String annotation)
Method Detail

nodeName

public String nodeName()
Overrides:
nodeName in class org.jsoup.nodes.TextNode

annotation

public AnnotationNode annotation(String annotation)
Set the annotation of this node.

Parameters:
annotation - raw annotation
Returns:
this, for chaining

apply

public org.jsoup.nodes.Node apply(org.jsoup.nodes.Node annotate)


Copyright © 2014. All rights reserved.