LiteralNode

slick.ast.LiteralNode
See theLiteralNode companion object
class LiteralNode(val buildType: Type, val value: Any, val volatileHint: Boolean) extends NullaryNode with SimplyTypedNode

A literal value expression.

Attributes

volatileHint

Indicates whether this value should be considered volatile, i.e. it contains user-generated data or may change in future executions of what is otherwise the same query. A database back-end should usually turn volatile constants into bind variables.

Companion:
object
Source:
Node.scala
Graph
Supertypes
trait Node
trait Dumpable
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Types

Attributes

Source:
Node.scala

Value members

Concrete methods

override def equals(o: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Attributes

that

the object to compare against this object for equality.

Returns:

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Any
Source:
Node.scala
override def getDumpInfo: DumpInfo

Return the name, main info, attribute info and named children

Return the name, main info, attribute info and named children

Attributes

Definition Classes
Source:
Node.scala
override def hashCode: Int

Calculate a hash code value for the object.

Calculate a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns:

the hash code value for this object.

Definition Classes
Any
Source:
Node.scala
override def self: Self

Attributes

Definition Classes
Source:
Node.scala

Inherited methods

final def :@(newType: Type): Self

Return this Node with a Type assigned (if no other type has been seen for it yet) or a typed copy.

Return this Node with a Type assigned (if no other type has been seen for it yet) or a typed copy.

Attributes

Inherited from:
Node
Source:
Node.scala
def childNames: Iterable[String]

Names for the child nodes to show in AST dumps. Defaults to a numbered sequence starting at 0 but can be overridden by subclasses to produce more suitable names.

Names for the child nodes to show in AST dumps. Defaults to a numbered sequence starting at 0 but can be overridden by subclasses to produce more suitable names.

Attributes

Inherited from:
Node
Source:
Node.scala
override def children: ConstArray[Nothing]

All child nodes of this node. Must be implemented by subclasses.

All child nodes of this node. Must be implemented by subclasses.

Attributes

Definition Classes
Inherited from:
NullaryNode
Source:
Node.scala
final override def childrenForeach[R](f: Node => R): Unit

Apply a side-effecting function to all direct children from left to right. Note that

Apply a side-effecting function to all direct children from left to right. Note that

 n.childrenForeach(f) 

is equivalent to

 n.children.foreach(f) 

but can be implemented more efficiently in Node subclasses.

Attributes

Definition Classes
Inherited from:
NullaryNode
Source:
Node.scala
def hasType: Boolean

Check if this node has a type without marking the type as seen.

Check if this node has a type without marking the type as seen.

Attributes

Inherited from:
Node
Source:
Node.scala
final def infer(scope: Scope, typeChildren: Boolean): Self

Rebuild this node and all children with their computed type. If this node already has a type, the children are only type-checked again if typeChildren is true. if retype is also true, the existing type of this node is replaced. If this node does not yet have a type, the types of all children are computed first.

Rebuild this node and all children with their computed type. If this node already has a type, the children are only type-checked again if typeChildren is true. if retype is also true, the existing type of this node is replaced. If this node does not yet have a type, the types of all children are computed first.

Attributes

Inherited from:
Node
Source:
Node.scala
final override def mapChildren(f: Node => Node, keepType: Boolean): Self

Apply a mapping function to all children of this node and recreate the node with the new children. If all new children are identical to the old ones, this node is returned. If keepType is true, the type of this node is kept even when the children have changed.

Apply a mapping function to all children of this node and recreate the node with the new children. If all new children are identical to the old ones, this node is returned. If keepType is true, the type of this node is kept even when the children have changed.

Attributes

Definition Classes
Inherited from:
NullaryNode
Source:
Node.scala

The current type of this node.

The current type of this node.

Attributes

Inherited from:
Node
Source:
Node.scala
final override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Node -> Any
Inherited from:
Node
Source:
Node.scala
final def untyped: Self

Return this Node with no Type assigned (if it has not yet been observed) or an untyped copy.

Return this Node with no Type assigned (if it has not yet been observed) or an untyped copy.

Attributes

Inherited from:
Node
Source:
Node.scala
final def withChildren(ch2: ConstArray[Node]): Self

Rebuild this node with new child nodes unless all children are identical to the current ones, in which case this node is returned.

Rebuild this node with new child nodes unless all children are identical to the current ones, in which case this node is returned.

Attributes

Inherited from:
Node
Source:
Node.scala
final def withInferredType(scope: Scope, typeChildren: Boolean): Self

Attributes

Inherited from:
SimplyTypedNode
Source:
Node.scala

Concrete fields

Attributes

Source:
Node.scala
val value: Any

Attributes

Source:
Node.scala
val volatileHint: Boolean

Attributes

Source:
Node.scala