Interface LiteralVisitor<T>
- Type Parameters:
T- the return type of the visitor.
public interface LiteralVisitor<T>
Literal visitor interface.
-
Method Summary
Modifier and TypeMethodDescriptionvisitBoolean(boolean b) Visits a boolean literal.visitInteger(int value) Visits a integer literal.visitRecord(Map<Identifier, Literal> members) Visits a record literal.visitString(Template value) Visits a string literal.visitTuple(List<Literal> members) Visits a tuple literal.
-
Method Details
-
visitBoolean
Visits a boolean literal.- Parameters:
b- the boolean literal value.- Returns:
- the value from the visitor.
-
visitString
Visits a string literal.- Parameters:
value- the template value.- Returns:
- the value from the visitor.
-
visitRecord
Visits a record literal.- Parameters:
members- the map of keys to literal values.- Returns:
- the value from the visitor.
-
visitTuple
Visits a tuple literal.- Parameters:
members- the list of literal values.- Returns:
- the value from the visitor.
-
visitInteger
Visits a integer literal.- Parameters:
value- the value literal value.- Returns:
- the value from the visitor.
-