GrammarScope  4.0.0
Protected Member Functions | Static Private Attributes | List of all members
grammarscope.io.print.AnnotatedTreePrinter< T extends IAnnotatedTreeGraphNode< T > Class Template Reference
Inheritance diagram for grammarscope.io.print.AnnotatedTreePrinter< T extends IAnnotatedTreeGraphNode< T >:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.io.print.AnnotatedTreePrinter< T extends IAnnotatedTreeGraphNode< T >:
Collaboration graph
[legend]

Protected Member Functions

StringBuffer appendNode (final StringBuffer sb, final T tree, final long format)
 
StringBuffer appendAnnotations (final StringBuffer sb, final ILabel l)
 
StringBuffer appendAnnotationsFull (final StringBuffer sb, final ILabel l)
 
- Protected Member Functions inherited from grammarscope.io.print.TreePrinter< T >
StringBuffer appendNode (final StringBuffer sb, final T tree, final long format)
 
StringBuffer appendLabel (final StringBuffer sb, final ILabel l, final boolean isLeaf, final long format)
 
StringBuffer appendAnnotations (final StringBuffer sb, final ILabel l)
 
StringBuffer appendAnnotationsFull (final StringBuffer sb, final ILabel l)
 
StringBuffer appendScore (final StringBuffer sb, final T tree)
 
boolean isLeaf (final T t)
 

Static Private Attributes

static final String[] annotations = { "HeadWord", "HeadTag" }
 

Additional Inherited Members

- Public Member Functions inherited from grammarscope.io.print.TreePrinter< T >
String print (final T tree, final long format)
 
- Static Public Attributes inherited from grammarscope.io.print.TreePrinter< T >
static final char NODE_TAG1
 
static final char NODE_TAG2
 
static final char LEAF_TAG1
 
static final char LEAF_TAG2
 
static final char SCORE_TAG1
 
static final char SCORE_TAG2
 
static final NumberFormat SCORE_FORMAT
 
static final long WORD
 
static final long VALUE
 
static final long INDEX
 
static final long ANNOTATIONS
 
static final long ALL_ANNOTATIONS
 
static final long SCORE
 
static final long COLLAPSE
 
static final long TAG_LEAVES
 
static final long TAG_NODES
 
static final long FULL
 

Detailed Description

Common utilities

Author
Stanford
Bernard Bou [1313o.nosp@m.u@gm.nosp@m.ail.c.nosp@m.om]

Member Function Documentation

◆ appendAnnotations()

StringBuffer grammarscope.io.print.AnnotatedTreePrinter< T extends IAnnotatedTreeGraphNode< T >.appendAnnotations ( final StringBuffer  sb,
final ILabel  l 
)
protected

◆ appendAnnotationsFull()

StringBuffer grammarscope.io.print.AnnotatedTreePrinter< T extends IAnnotatedTreeGraphNode< T >.appendAnnotationsFull ( final StringBuffer  sb,
final ILabel  l 
)
protected

◆ appendNode()

StringBuffer grammarscope.io.print.AnnotatedTreePrinter< T extends IAnnotatedTreeGraphNode< T >.appendNode ( final StringBuffer  sb,
final T  tree,
final long  format 
)
protected

Append label to string buffer as per format

Parameters
sbstring buffer
treetree
formatformat

Member Data Documentation

◆ annotations

final String [] grammarscope.io.print.AnnotatedTreePrinter< T extends IAnnotatedTreeGraphNode< T >.annotations = { "HeadWord", "HeadTag" }
staticprivate

The documentation for this class was generated from the following file: