Constant

tastyquery.Constants.Constant
See theConstant companion object
final class Constant

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Deprecated constructors

def this(value: Matchable, tag: Int)

Attributes

Deprecated
[Since version 1.1.0]

Concrete methods

def _1: Any
def booleanValue: Boolean
def byteValue: Byte
def canEqual(x: Any): Boolean
def charValue: Char
def doubleValue: Double
override def equals(other: Any): Boolean

We need the equals method to take account of tags as well as values.

We need the equals method to take account of tags as well as values.

Attributes

Definition Classes
Any
def floatValue: Float
def get: Any
override def hashCode: Int

Calculates a hash code value for the object.

Calculates 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
def intValue: Int
def isAnyVal: Boolean
def isByteRange: Boolean
def isCharRange: Boolean
def isEmpty: Boolean
def isFloatRange: Boolean
def isIntRange: Boolean
def isLongRange: Boolean
def isNaN: Boolean
def isNonUnitAnyVal: Boolean
def isNumeric: Boolean
def isShortRange: Boolean
def longValue: Long
def shortValue: Short
def stringValue: String
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
Any

The class type value of a classOf constant.

The class type value of a classOf constant.

This must be a "possibly parametrized class type" according to the specification of the language. If the class is polymorphic, it may be applied (making it a proper type) or not (in which case it is not a proper type).

Attributes

def wideType(using Context): Type

Concrete fields

val tag: Int
val value: Matchable