|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.FunctionValueImpl
public final class FunctionValueImpl
represent a named function value for a functions
Constructor Summary | |
---|---|
FunctionValueImpl(Collection.Key name,
Object value)
|
|
FunctionValueImpl(String[] names,
Object value)
|
|
FunctionValueImpl(String name,
Object value)
constructor of the class |
Method Summary | |
---|---|
Boolean |
castToBoolean(Boolean defaultValue)
cast the castable value to a boolean value |
boolean |
castToBooleanValue()
cast the castable value to a boolean value |
DateTime |
castToDateTime()
cast the castable value to a date time object |
DateTime |
castToDateTime(DateTime defaultValue)
cast the castable value to a date time object |
double |
castToDoubleValue()
cast the castable value to a double value |
double |
castToDoubleValue(double defaultValue)
cast the castable value to a double value |
String |
castToString()
cast the castable value to a string, other than the Method toString, this Method can throw a Exception |
String |
castToString(String defaultValue)
cast the castable value to a string, return the default value, when the method is not castable |
int |
compareTo(boolean b)
|
int |
compareTo(DateTime dt)
|
int |
compareTo(double d)
|
int |
compareTo(String str)
|
String |
getName()
|
Collection.Key |
getNameAsKey()
|
String |
getNameAsString()
|
String[] |
getNames()
|
Object |
getValue()
|
static FunctionValue |
newInstance(Collection.Key name,
Object value)
|
static FunctionValue |
newInstance(String[] name,
Object value)
|
static FunctionValue |
newInstance(String name,
Object value)
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties properties)
method to print out information to a object as HTML |
String |
toString()
|
static Struct |
toStruct(FunctionValueImpl fv1)
|
static Struct |
toStruct(FunctionValueImpl fv1,
FunctionValueImpl fv2)
|
static Struct |
toStruct(FunctionValueImpl fv1,
FunctionValueImpl fv2,
FunctionValueImpl fv3)
|
static Struct |
toStruct(FunctionValueImpl fv1,
FunctionValueImpl fv2,
FunctionValueImpl fv3,
FunctionValueImpl fv4)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FunctionValueImpl(String name, Object value)
name
- name of the valuevalue
- value himselfpublic FunctionValueImpl(Collection.Key name, Object value)
public FunctionValueImpl(String[] names, Object value)
Method Detail |
---|
public static FunctionValue newInstance(String name, Object value)
name
- value
-
public static FunctionValue newInstance(String[] name, Object value)
public static FunctionValue newInstance(Collection.Key name, Object value)
public String getName()
getName
in interface FunctionValue
FunctionValue.getName()
public String getNameAsString()
public Collection.Key getNameAsKey()
public String[] getNames()
public Object getValue()
getValue
in interface FunctionValue
FunctionValue.getValue()
public String castToString() throws PageException
Castable
castToString
in interface Castable
PageException
Castable.castToString()
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
Castable.castToString(java.lang.String)
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
PageException
Castable.castToBooleanValue()
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
Castable.castToBoolean(java.lang.Boolean)
public double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
PageException
Castable.castToDoubleValue()
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
Castable.castToDoubleValue(double)
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
PageException
Castable.castToDateTime()
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
defaultValue
- returned when it is not possible to cast to a dateTime object
Castable.castToDateTime(railo.runtime.type.dt.DateTime)
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
PageException
railo.runtime.op.Castable#compare(boolean)
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(railo.runtime.type.dt.DateTime)
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(double)
public int compareTo(String str) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(java.lang.String)
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties properties)
Dumpable
toDumpData
in interface Dumpable
public String toString()
toString
in class Object
Object.toString()
public static Struct toStruct(FunctionValueImpl fv1)
public static Struct toStruct(FunctionValueImpl fv1, FunctionValueImpl fv2)
public static Struct toStruct(FunctionValueImpl fv1, FunctionValueImpl fv2, FunctionValueImpl fv3)
public static Struct toStruct(FunctionValueImpl fv1, FunctionValueImpl fv2, FunctionValueImpl fv3, FunctionValueImpl fv4)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |