abstract class LiteralsCodec[Rep, Code] extends Codec[Code]
encodes/decodes literals
the abstract methods must handle the toString/fromString for type Rep
- Rep
the underlying type of the literals
- Code
the target type of the codecs
- Source
- Codec.scala
- Alphabetic
- By Inheritance
- LiteralsCodec
- Codec
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
LiteralsCodec(id: GlobalName, rt: RepresentedRealizedType[Rep])
- id
the id of the codec
- rt
the realized type
Abstract Value Members
-
abstract
val
codeType: ConcreteType
- Definition Classes
- Codec
- abstract def decodeRep(c: Code): Rep
- abstract def encodeRep(r: Rep): Code
Concrete 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()
-
def
decode(c: Code): Term
- Definition Classes
- LiteralsCodec → Codec
-
def
encode(t: Term): Code
- Definition Classes
- LiteralsCodec → Codec
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
exp: Term
- Definition Classes
- Codec
-
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()
-
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()
-
def
strictDecode(c: Code): Term
data must be validated even if decoding succeeds, e.g., check prime-ness of integer-encoded prime numbers
data must be validated even if decoding succeeds, e.g., check prime-ness of integer-encoded prime numbers
- Definition Classes
- Codec
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
tp: Term
- Definition Classes
- Codec
-
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()