java.lang.Object
java.lang.Record
org.litebridge.orm.api.select.ast.SelectNode
- Record Components:
previous- the previous node in the chainexpressions- the expressions to selectresultType- the target result type, if overridden
- All Implemented Interfaces:
QueryNode
public record SelectNode(@Nullable QueryNode previous, ExpressionSpec[] expressions, @Nullable Class<?> resultType)
extends Record
implements QueryNode
Represents a SELECT clause in the query AST.
-
Constructor Summary
ConstructorsConstructorDescriptionSelectNode(@Nullable QueryNode previous, ExpressionSpec[] expressions, @Nullable Class<?> resultType) Creates an instance of aSelectNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionsrecord component.inthashCode()Returns a hash code value for this object.@Nullable QueryNodeprevious()Returns the value of thepreviousrecord component.@Nullable Class<?> Returns the value of theresultTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SelectNode
public SelectNode(@Nullable QueryNode previous, ExpressionSpec[] expressions, @Nullable Class<?> resultType) Creates an instance of aSelectNoderecord class.- Parameters:
previous- the value for thepreviousrecord componentexpressions- the value for theexpressionsrecord componentresultType- the value for theresultTyperecord component
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
previous
Returns the value of thepreviousrecord component. -
expressions
Returns the value of theexpressionsrecord component.- Returns:
- the value of the
expressionsrecord component
-
resultType
Returns the value of theresultTyperecord component.- Returns:
- the value of the
resultTyperecord component
-