railo.runtime.interpreter.ref.literal
Class LNumber

java.lang.Object
  extended by railo.runtime.interpreter.ref.literal.LNumber
All Implemented Interfaces:
Literal, Ref

public final class LNumber
extends Object
implements Literal

Literal Number


Field Summary
static LNumber ONE
           
static LNumber ZERO
           
 
Constructor Summary
LNumber(Double literal)
          constructor of the class
LNumber(String literal)
          constructor of the class
 
Method Summary
 boolean eeq(Ref other)
           
 Object getCollection()
          return the value for that the reference is for
 String getString()
          cast literal to a string
 String getTypeName()
          return the name name of a reference
 Object getValue()
          return the value for that the reference is for
 String toString()
           
 Object touchValue()
          return the value for that the reference is for
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ZERO

public static final LNumber ZERO

ONE

public static final LNumber ONE
Constructor Detail

LNumber

public LNumber(Double literal)
constructor of the class

Parameters:
literal -

LNumber

public LNumber(String literal)
        throws PageException
constructor of the class

Parameters:
literal -
Throws:
PageException
Method Detail

getValue

public Object getValue()
Description copied from interface: Ref
return the value for that the reference is for

Specified by:
getValue in interface Ref
Returns:
value to reference
See Also:
Ref.getValue()

getCollection

public Object getCollection()
Description copied from interface: Ref
return the value for that the reference is for

Specified by:
getCollection in interface Ref
Returns:
value to reference
See Also:
Ref.getCollection()

getTypeName

public String getTypeName()
Description copied from interface: Ref
return the name name of a reference

Specified by:
getTypeName in interface Ref
Returns:
type as string
See Also:
Ref.getTypeName()

touchValue

public Object touchValue()
Description copied from interface: Ref
return the value for that the reference is for

Specified by:
touchValue in interface Ref
Returns:
value to reference
See Also:
Ref.touchValue()

getString

public String getString()
Description copied from interface: Literal
cast literal to a string

Specified by:
getString in interface Literal
Returns:
casted string
See Also:
Literal.getString()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

eeq

public boolean eeq(Ref other)
            throws PageException
Specified by:
eeq in interface Ref
Throws:
PageException
See Also:
Ref.eeq(railo.runtime.interpreter.ref.Ref)


Copyright © 2012 Railo