abstract class SymbolicXMLBuilder extends AnyRef
This class builds instance of Tree that represent XML.
Note from martin: This needs to have its position info reworked. I don't understand exactly what's done here. To make validation pass, I set many positions to be transparent. Not sure this is a good idea for navigating XML trees in the IDE but it's the best I can do right now. If someone who understands this part better wants to give it a shot, please do!
- Source
- SymbolicXMLBuilder.scala
- Version
1.0
- Alphabetic
- By Inheritance
- SymbolicXMLBuilder
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Type Members
-
case class
TextAttache(pos: Global.Position, text: String) extends Product with Serializable
Attachment for trees deriving from text nodes (Text, CData, entities).
Attachment for trees deriving from text nodes (Text, CData, entities). Used for coalescing.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from SymbolicXMLBuilder to any2stringadd[SymbolicXMLBuilder] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (SymbolicXMLBuilder, B)
- Implicit
- This member is added by an implicit conversion from SymbolicXMLBuilder to ArrowAssoc[SymbolicXMLBuilder] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
Comment(txt: Global.Tree): Global.Tree
- Attributes
- protected
-
def
ProcInstr(target: Global.Tree, txt: Global.Tree): Global.Tree
- Attributes
- protected
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def charData(pos: Global.Position, txt: String): Global.Tree
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def comment(pos: Global.Position, text: String): Global.Tree
-
def
convertToTextPat(buf: Seq[Global.Tree]): List[Global.Tree]
- Attributes
- protected
-
def
convertToTextPat(t: Global.Tree): Global.Tree
- Attributes
- protected
- def element(pos: Global.Position, qname: String, attrMap: Map[String, Global.Tree], empty: Boolean, args: Seq[Global.Tree]): Global.Tree
-
def
ensuring(cond: (SymbolicXMLBuilder) ⇒ Boolean, msg: ⇒ Any): SymbolicXMLBuilder
- Implicit
- This member is added by an implicit conversion from SymbolicXMLBuilder to Ensuring[SymbolicXMLBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (SymbolicXMLBuilder) ⇒ Boolean): SymbolicXMLBuilder
- Implicit
- This member is added by an implicit conversion from SymbolicXMLBuilder to Ensuring[SymbolicXMLBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): SymbolicXMLBuilder
- Implicit
- This member is added by an implicit conversion from SymbolicXMLBuilder to Ensuring[SymbolicXMLBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): SymbolicXMLBuilder
- Implicit
- This member is added by an implicit conversion from SymbolicXMLBuilder to Ensuring[SymbolicXMLBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def entityRef(pos: Global.Position, n: String): Global.Tree
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
group(pos: Global.Position, args: Seq[Global.Tree]): Global.Tree
Various node constructions.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isEmptyText(t: Global.Tree): Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeText1(txt: Global.Tree): Global.Tree
- def makeTextPat(txt: Global.Tree): Global.Apply
- def makeXMLpat(pos: Global.Position, n: String, args: Seq[Global.Tree]): Global.Tree
-
def
makeXMLseq(pos: Global.Position, args: Seq[Global.Tree]): Global.Block
could optimize if args.length == 0, args.length == 1 AND args(0) is <: Node.
-
def
mkXML(pos: Global.Position, isPattern: Boolean, pre: Global.Tree, label: Global.Tree, attrs: Global.Tree, scope: Global.Tree, empty: Boolean, children: Seq[Global.Tree]): Global.Tree
Wildly wrong documentation deleted in favor of "self-documenting code."
Wildly wrong documentation deleted in favor of "self-documenting code."
- Attributes
- protected
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parseAttribute(pos: Global.Position, s: String): Global.Tree
- def procInstr(pos: Global.Position, target: String, txt: String): Global.Tree
-
def
splitPrefix(name: String): (Option[String], String)
Returns (Some(prefix) | None, rest) based on position of ':'
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- final def text(pos: Global.Position, txt: String): Global.Tree
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def unparsed(pos: Global.Position, str: String): Global.Tree
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
→[B](y: B): (SymbolicXMLBuilder, B)
- Implicit
- This member is added by an implicit conversion from SymbolicXMLBuilder to ArrowAssoc[SymbolicXMLBuilder] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Deprecated Value Members
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from SymbolicXMLBuilder to StringFormat[SymbolicXMLBuilder] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)instead ofvalue.formatted(formatString), or use thef""string interpolator. In Java 15 and later,formattedresolves to the new method in String which has reversed parameters.
The Scala compiler and reflection APIs.