Package hydra.ext.lisp.syntax
Class TopLevelForm.Expression
- java.lang.Object
-
- hydra.ext.lisp.syntax.TopLevelForm
-
- hydra.ext.lisp.syntax.TopLevelForm.Expression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TopLevelForm>
- Enclosing class:
- TopLevelForm
public static final class TopLevelForm.Expression extends TopLevelForm implements java.io.Serializable
A bare expression at the top level- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hydra.ext.lisp.syntax.TopLevelForm
TopLevelForm.Constant, TopLevelForm.Expression, TopLevelForm.Function, TopLevelForm.Macro, TopLevelForm.PartialVisitor<R>, TopLevelForm.RecordType, TopLevelForm.Variable, TopLevelForm.Visitor<R>
-
-
Field Summary
Fields Modifier and Type Field Description Expressionvalue-
Fields inherited from class hydra.ext.lisp.syntax.TopLevelForm
CONSTANT, EXPRESSION, FUNCTION, MACRO, RECORD_TYPE, TYPE_, VARIABLE
-
-
Constructor Summary
Constructors Constructor Description Expression(Expression value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(TopLevelForm.Visitor<R> visitor)intcompareTo(TopLevelForm other)booleanequals(java.lang.Object other)inthashCode()
-
-
-
Field Detail
-
value
public final Expression value
-
-
Constructor Detail
-
Expression
public Expression(Expression value)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(TopLevelForm other)
- Specified by:
compareToin interfacejava.lang.Comparable<TopLevelForm>
-
accept
public <R> R accept(TopLevelForm.Visitor<R> visitor)
- Specified by:
acceptin classTopLevelForm
-
-