sealed trait Doc extends AnyRef
- Source
- Doc.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Doc
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Doc, B)
-
def
<+>(that: Doc): Doc
Concatenate two documents with a space between them.
-
def
</>(that: Doc): Doc
Concatenate two documents with a line break between them.
-
def
<>(that: Doc): Doc
Concatenate two documents.
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
- def ensuring(cond: (Doc) ⇒ Boolean, msg: ⇒ Any): Doc
- def ensuring(cond: (Doc) ⇒ Boolean): Doc
- def ensuring(cond: Boolean, msg: ⇒ Any): Doc
- def ensuring(cond: Boolean): Doc
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def firstChar: Option[Char]
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
group: Doc
Group a document such that it is displayed on one line if possible.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nest(i: Int): Doc
Nest a document to
i
spaces of indentation.Nest a document to
i
spaces of indentation.- i
Then number of spaces to indent by.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
render(lineWidth: Int): String
Turn the document into a string.
Turn the document into a string.
- lineWidth
No line in the result string will exceed this length, unless it is unavoidable.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Doc → AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
writeToFile(file: Path): Unit
Writes the document to the specified file, replacing the current contents.
- def →[B](y: B): (Doc, B)
This is the API documentation for GAPT.
The main package is gapt.