Package hydra.core
Class Literal
- java.lang.Object
-
- hydra.core.Literal
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
Literal.Binary
,Literal.Boolean_
,Literal.Float_
,Literal.Integer_
,Literal.String_
public abstract class Literal extends java.lang.Object implements java.io.Serializable
A term constant; an instance of a literal type- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Literal.Binary
A binary literalstatic class
Literal.Boolean_
A boolean literalstatic class
Literal.Float_
A floating-point literalstatic class
Literal.Integer_
An integer literalstatic interface
Literal.PartialVisitor<R>
static class
Literal.String_
A string literalstatic interface
Literal.Visitor<R>
-
Field Summary
Fields Modifier and Type Field Description static Name
FIELD_NAME_BINARY
static Name
FIELD_NAME_BOOLEAN
static Name
FIELD_NAME_FLOAT
static Name
FIELD_NAME_INTEGER
static Name
FIELD_NAME_STRING
static Name
TYPE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <R> R
accept(Literal.Visitor<R> visitor)
-
-
-
Field Detail
-
TYPE_NAME
public static final Name TYPE_NAME
-
FIELD_NAME_BINARY
public static final Name FIELD_NAME_BINARY
-
FIELD_NAME_BOOLEAN
public static final Name FIELD_NAME_BOOLEAN
-
FIELD_NAME_FLOAT
public static final Name FIELD_NAME_FLOAT
-
FIELD_NAME_INTEGER
public static final Name FIELD_NAME_INTEGER
-
FIELD_NAME_STRING
public static final Name FIELD_NAME_STRING
-
-
Method Detail
-
accept
public abstract <R> R accept(Literal.Visitor<R> visitor)
-
-