object LFUtil extends Serializable
- Alphabetic
- By Inheritance
- LFUtil
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait CodeGenDeclKind extends AnyRef
- type FilePlan = \/[String, (Option[String], File, Iterable[scala.reflect.api.JavaUniverse.Tree])]
- final case class TupleNesting[A](run: NonEmptyList[\/[A, TupleNesting[A]]]) extends Product with Serializable
- final case class WriteParams(templateIds: Map[Identifier, DefTemplateWithRecord], definitions: Vector[FWT], interfaces: Map[Identifier, typesig.DefInterface.FWT]) 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
- val autoGenerationHeader: String
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- 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: AnyRef): 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.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val higherKindsImport: scala.reflect.api.JavaUniverse.Tree
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nothingType: scala.reflect.api.JavaUniverse.Select
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def packageNameToRefTree(packageName: String): scala.reflect.api.JavaUniverse.RefTree
- val primitiveObject: scala.reflect.api.JavaUniverse.Tree
- def qualifiedNameToDirsAndName(qualifiedName: QualifiedName): (Array[String], String)
- def qualifiedNameToRefTree(ss: Array[String]): scala.reflect.api.JavaUniverse.RefTree
- val reservedNames: Set[String]
- 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
- def simplyDelegates(typeVars: ImmArraySeq[Name]): (Type) => Option[Identifier]
Does the type "simply delegate" (i.e.
Does the type "simply delegate" (i.e. just pass along
typeVarsverbatim) to another type constructor? If so, yield that type constructor as a string. - 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 toIdent(s: String): scala.reflect.api.JavaUniverse.Ident
- def toNotReservedName(name: String): String
- 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
flatinto the shallowest permissible tree, given that a maximum ofrootbranches are permitted directly at the root andsubtreesbranches are permitted from each internal node other than root.Group
flatinto the shallowest permissible tree, given that a maximum ofrootbranches are permitted directly at the root andsubtreesbranches are permitted from each internal node other than root.This is used for generating applicative-style code for which multiple arities of
liftAn are supported and it is more efficient/specializable to use higher arities when possible. For example, scalaz.Apply supports up toapply12andtuple5, so root=12, subtrees=5 would be appropriate to generate calls to its functions.See
LFUtilSpec#tupleNestingSamplesfor some example inputs and output. - final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- case object Contract extends CodeGenDeclKind with Product with Serializable
- case object EventDecoder extends CodeGenDeclKind with Product with Serializable
- case object Template extends CodeGenDeclKind with Product with Serializable
- case object UserDefinedType extends CodeGenDeclKind with Product with Serializable
- object WriteParams extends Serializable
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated