object LFUtil extends Serializable
- Alphabetic
- By Inheritance
- LFUtil
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class TupleNesting[A](run: NonEmptyList[\/[A, TupleNesting[A]]]) extends Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val domainApiAlias: scala.reflect.api.JavaUniverse.Ident
- val domainApiImport: scala.reflect.api.JavaUniverse.Tree
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def escapeIfReservedName(name: Name): Name
-
def
escapeReservedName(name: Name): \/[Name, name.type]
Either mangle a reserved name, or return it unchanged.
Either mangle a reserved name, or return it unchanged. Reserved names are defined by the Scala interface section of the LF specification.
Note: not idempotent! Escaped reserved names are still reserved, and will be escaped again by a second call. See said spec for details.
-
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
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val higherKindsImport: scala.reflect.api.JavaUniverse.Tree
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
- val primitiveObject: scala.reflect.api.JavaUniverse.Tree
- val rpcEventAlias: scala.reflect.api.JavaUniverse.Ident
- val rpcEventImport: scala.reflect.api.JavaUniverse.Tree
- val rpcValueAlias: scala.reflect.api.JavaUniverse.Ident
- val rpcValueImport: scala.reflect.api.JavaUniverse.Tree
- val stdMapCompanion: scala.reflect.api.JavaUniverse.Select
- val stdMapType: scala.reflect.api.JavaUniverse.Select
- val stdSeqCompanion: scala.reflect.api.JavaUniverse.Select
- val stdVectorType: scala.reflect.api.JavaUniverse.Select
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toCovariantTypeDef(s: String): scala.reflect.api.JavaUniverse.TypeDef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def toTypeDef(s: String): scala.reflect.api.JavaUniverse.TypeDef
-
def
tupleNesting[A](flat: NonEmptyList[A], root: Int, subtrees: Int): TupleNesting[A]
Group
flat
into the shallowest permissible tree, given that a maximum ofroot
branches are permitted directly at the root andsubtrees
branches are permitted from each internal node other than root.Group
flat
into the shallowest permissible tree, given that a maximum ofroot
branches are permitted directly at the root andsubtrees
branches are permitted from each internal node other than root.This is used for generating applicative-style code for which multiple arities of
liftA
n are supported and it is more efficient/specializable to use higher arities when possible. For example, scalaz.Apply supports up toapply12
andtuple5
, so root=12, subtrees=5 would be appropriate to generate calls to its functions.See
LFUtilSpec#tupleNestingSamples
for some example inputs and output. -
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()