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(PageContext pc, Ref other)
           
 Object getCollection(PageContext pc)
          return the value for that the reference is for
 String getString(PageContext pc)
          cast literal to a string
 String getTypeName()
          return the name name of a reference
 Object getValue(PageContext pc)
          return the value for that the reference is for
 String toString()
           
 Object touchValue(PageContext pc)
          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(PageContext pc)
Description copied from interface: Ref
return the value for that the reference is for

Specified by:
getValue in interface Ref
Returns:
value to reference

getCollection

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

Specified by:
getCollection in interface Ref
Returns:
value to reference

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

touchValue

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

Specified by:
touchValue in interface Ref
Returns:
value to reference

getString

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

Specified by:
getString in interface Literal
Returns:
casted string

toString

public String toString()
Overrides:
toString in class Object

eeq

public boolean eeq(PageContext pc,
                   Ref other)
            throws PageException
Specified by:
eeq in interface Ref
Throws:
PageException


Copyright © 2012 Railo