|
Scala 2.1.8
|
class
PrettyPrinter
extends
java.lang.Object with
scala.ScalaObjectConstructor Summary | |
def
this
( width : scala.Int , step : scala.Int )
|
Class Summary | |
case
|
class
Box
|
class
BrokenException
|
|
class
Item
|
|
case
|
class
Para
|
Object Summary | |
case
|
object
Break
|
Def Summary | |
protected
|
def
childrenAreLeaves
( n : scala.xml.Node )
: scala.Boolean
|
protected
|
def
cut
( s : java.lang.String , ind : scala.Int )
: scala.List[PrettyPrinter.this.Item]
|
protected
|
def
endTag
( n : scala.xml.Node )
: java.lang.String
|
protected
|
def
fits
( test : java.lang.String )
: scala.Boolean
|
def
format
( n : scala.xml.Node )
: java.lang.String
returns a formatted string containing well-formed XML with default namespace prefix mapping |
|
def
format
( n : scala.xml.Node , pscope : scala.xml.NamespaceBinding )
: java.lang.String
returns a formatted string containing well-formed XML with given namespace to prefix mapping |
|
def
format
( n : scala.xml.Node , pscope : scala.xml.NamespaceBinding , sb : scala.runtime.compat.StringBuilder )
: scala.Unit
|
|
def
format
( n : scala.xml.Node , sb : scala.runtime.compat.StringBuilder )
: scala.Unit
appends a formatted string containing well-formed XML with given namespace to prefix mapping to the given stringbuffer |
|
def
formatNodes
( nodes : scala.Seq[scala.xml.Node] )
: java.lang.String
|
|
def
formatNodes
( nodes : scala.Seq[scala.xml.Node] , pscope : scala.xml.NamespaceBinding )
: java.lang.String
returns a formatted string containing well-formed XML |
|
def
formatNodes
( nodes : scala.Seq[scala.xml.Node] , pscope : scala.xml.NamespaceBinding , sb : scala.runtime.compat.StringBuilder )
: scala.Unit
appends a formatted string containing well-formed XML with the given namespace to prefix mapping to the given stringbuffer |
|
protected
|
def
leafTag
( n : scala.xml.Node )
: java.lang.String
|
protected
|
def
makeBox
( ind : scala.Int , s : java.lang.String )
: scala.Unit
try to make indented box, if possible, else para |
protected
|
def
makeBreak
: scala.Unit
|
protected
|
def
makePara
( ind : scala.Int , s : java.lang.String )
: scala.Unit
|
protected
|
def
reset
: scala.Unit
|
protected
|
def
startTag
( n : scala.xml.Node , pscope : scala.xml.NamespaceBinding )
: scala.Tuple2[java.lang.String,scala.Int]
|
protected
|
def
traverse
( it : scala.Iterator[scala.xml.Node] , scope : scala.xml.NamespaceBinding , ind : scala.Int )
: scala.Unit
|
protected
|
def
traverse
( node : scala.xml.Node , pscope : scala.xml.NamespaceBinding , ind : scala.Int )
: scala.Unit
|
Constructor Detail |
def
this
( width : scala.Int , step : scala.Int )
Def Detail |
def
childrenAreLeaves
( n : scala.xml.Node ) : scala.Boolean
def
cut
( s : java.lang.String , ind : scala.Int ) : scala.List[PrettyPrinter.this.Item]
def
endTag
( n : scala.xml.Node ) : java.lang.String
def
fits
( test : java.lang.String ) : scala.Boolean
def
format
( n : scala.xml.Node ) : java.lang.String
def
format
( n : scala.xml.Node , pscope : scala.xml.NamespaceBinding ) : java.lang.String
def
format
( n : scala.xml.Node , pscope : scala.xml.NamespaceBinding , sb : scala.runtime.compat.StringBuilder ) : scala.Unit
def
format
( n : scala.xml.Node , sb : scala.runtime.compat.StringBuilder ) : scala.Unit
def
formatNodes
( nodes : scala.Seq[scala.xml.Node] ) : java.lang.String
def
formatNodes
( nodes : scala.Seq[scala.xml.Node] , pscope : scala.xml.NamespaceBinding ) : java.lang.String
def
formatNodes
( nodes : scala.Seq[scala.xml.Node] , pscope : scala.xml.NamespaceBinding , sb : scala.runtime.compat.StringBuilder ) : scala.Unit
def
leafTag
( n : scala.xml.Node ) : java.lang.String
def
makeBox
( ind : scala.Int , s : java.lang.String ) : scala.Unit
def
makeBreak
: scala.Unit
def
makePara
( ind : scala.Int , s : java.lang.String ) : scala.Unit
def
reset
: scala.Unit
def
startTag
( n : scala.xml.Node , pscope : scala.xml.NamespaceBinding ) : scala.Tuple2[java.lang.String,scala.Int]
def
traverse
( it : scala.Iterator[scala.xml.Node] , scope : scala.xml.NamespaceBinding , ind : scala.Int ) : scala.Unit
def
traverse
( node : scala.xml.Node , pscope : scala.xml.NamespaceBinding , ind : scala.Int ) : scala.Unit