|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.util.StructSupport
railo.runtime.type.StructImpl
railo.runtime.exp.CatchBlockImpl
public class CatchBlockImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface railo.runtime.type.Collection |
---|
Collection.Key |
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary | |
---|---|
static Collection.Key |
ADDITIONAL
|
static Collection.Key |
DETAIL
|
static Collection.Key |
ERROR_CODE
|
static Collection.Key |
EXTENDED_INFO
|
static Collection.Key |
EXTENDEDINFO
|
static Collection.Key |
MESSAGE
|
static Collection.Key |
STACK_TRACE
|
static Collection.Key |
TAG_CONTEXT
|
Fields inherited from interface railo.runtime.type.Struct |
---|
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED |
Constructor Summary | |
---|---|
CatchBlockImpl(PageExceptionImpl pe)
|
Method Summary | |
---|---|
Object |
call(PageContext pc,
Collection.Key methodName,
Object[] arguments)
calls a method of the object |
Object |
call(PageContext pc,
String methodName,
Object[] arguments)
|
Object |
callWithNamedValues(PageContext pc,
Collection.Key methodName,
Struct args)
call a method of the Object with named arguments |
Object |
callWithNamedValues(PageContext pc,
String methodName,
Struct args)
|
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 |
boolean |
containsValue(Object value)
|
Collection |
duplicate(boolean deepCopy)
|
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator()
|
Set |
entrySet()
|
Object |
get(Collection.Key key)
return a value from the collection |
Object |
get(Collection.Key key,
Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null |
Object |
get(PageContext pc,
Collection.Key key)
return property or getter of the ContextCollection |
Object |
get(PageContext pc,
Collection.Key key,
Object defaultValue)
return property |
Object |
get(PageContext pc,
String key)
|
Object |
get(PageContext pc,
String key,
Object defaultValue)
|
PageException |
getPageException()
|
boolean |
isInitalized()
|
Iterator<Collection.Key> |
keyIterator()
|
Collection.Key[] |
keys()
|
Iterator<String> |
keysAsStringIterator()
|
void |
print(PageContext pc)
|
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception |
Object |
removeEL(Collection.Key key)
removes value from collection and return it when it exists, otherwise returns null |
Object |
set(Collection.Key key,
Object value)
sets a value to the collection |
Object |
set(PageContext pc,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object |
Object |
set(PageContext pc,
String propertyName,
Object value)
|
Object |
setEL(Collection.Key key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null |
Object |
setEL(PageContext pc,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object |
Object |
setEL(PageContext pc,
String propertyName,
Object value)
|
int |
size()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
Iterator<Object> |
valueIterator()
|
Collection |
values()
|
Methods inherited from class railo.runtime.type.StructImpl |
---|
clear, containsKey, copy, equals, g, g, hashCode |
Methods inherited from class railo.runtime.type.util.StructSupport |
---|
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, clone, compareTo, compareTo, compareTo, compareTo, containsKey, containsKey, get, get, get, getIterator, invalidKey, isEmpty, keySet, put, putAll, remove, set, setEL, sizeOf, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface railo.runtime.type.Collection |
---|
clear, clone, containsKey, containsKey, get, get, set, setEL |
Methods inherited from interface railo.runtime.type.ForEachIteratorable |
---|
getIterator |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, equals, get, hashCode, isEmpty, keySet, put, putAll, remove |
Methods inherited from interface railo.runtime.type.Sizeable |
---|
sizeOf |
Methods inherited from interface railo.runtime.op.Castable |
---|
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, compareTo, compareTo, compareTo, compareTo |
Field Detail |
---|
public static final Collection.Key MESSAGE
public static final Collection.Key DETAIL
public static final Collection.Key ERROR_CODE
public static final Collection.Key EXTENDEDINFO
public static final Collection.Key EXTENDED_INFO
public static final Collection.Key TAG_CONTEXT
public static final Collection.Key STACK_TRACE
public static final Collection.Key ADDITIONAL
Constructor Detail |
---|
public CatchBlockImpl(PageExceptionImpl pe)
Method Detail |
---|
public PageException getPageException()
getPageException
in interface CatchBlock
public String castToString() throws ExpressionException
Castable
castToString
in interface Castable
castToString
in class StructSupport
ExpressionException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
castToString
in class StructSupport
public boolean containsValue(Object value)
containsValue
in interface Map
containsValue
in class StructImpl
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
duplicate
in class StructImpl
public Set entrySet()
entrySet
in interface Map
entrySet
in class StructSupport
public void print(PageContext pc)
print
in interface CatchBlock
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
get
in class StructImpl
key
- key of the value to get
public Object set(Collection.Key key, Object value) throws PageException
Collection
set
in interface Collection
set
in class StructImpl
key
- key of the new valuevalue
- value to set
PageException
public Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
setEL
in class StructImpl
key
- key of the value to getvalue
- value to set
public int size()
size
in interface Map
size
in interface Collection
size
in class StructImpl
public Collection.Key[] keys()
keys
in interface Collection
keys
in class StructImpl
public Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
remove
in class StructImpl
key
- key of the collection
PageException
public Iterator<Collection.Key> keyIterator()
keyIterator
in interface Iteratorable
keyIterator
in class StructImpl
public Iterator<String> keysAsStringIterator()
keysAsStringIterator
in interface Iteratorable
keysAsStringIterator
in class StructImpl
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator()
entryIterator
in interface Iteratorable
entryIterator
in class StructImpl
public Iterator<Object> valueIterator()
valueIterator
in interface Iteratorable
valueIterator
in class StructImpl
public Collection values()
values
in interface Map
values
in class StructImpl
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class StructSupport
public Object call(PageContext pc, String methodName, Object[] arguments) throws PageException
PageException
public Object callWithNamedValues(PageContext pc, String methodName, Struct args) throws PageException
PageException
public Object callWithNamedValues(PageContext pc, Collection.Key methodName, Struct args) throws PageException
Objects
callWithNamedValues
in interface Objects
callWithNamedValues
in class StructSupport
pc
- PageContextmethodName
- name of the methodargs
- Named Arguments for the method
PageException
public boolean isInitalized()
public Object set(PageContext pc, String propertyName, Object value) throws PageException
PageException
public Object set(PageContext pc, Collection.Key propertyName, Object value) throws PageException
Objects
set
in interface Objects
set
in class StructSupport
propertyName
- property name to setvalue
- value to insert
PageException
public Object setEL(PageContext pc, String propertyName, Object value)
public Object setEL(PageContext pc, Collection.Key propertyName, Object value)
Objects
setEL
in interface Objects
setEL
in class StructSupport
propertyName
- property name to setvalue
- value to insert
public Object get(Collection.Key key) throws PageException
Collection
get
in interface Collection
get
in class StructImpl
key
- key of the value to get must be lower case
PageException
public Object get(PageContext pc, String key, Object defaultValue)
public Object get(PageContext pc, Collection.Key key, Object defaultValue)
Objects
get
in interface Objects
get
in class StructSupport
pc
- PageContextkey
- Name of the Property
public Object get(PageContext pc, String key) throws PageException
PageException
public Object get(PageContext pc, Collection.Key key) throws PageException
Objects
get
in interface Objects
get
in class StructSupport
pc
- PageContextkey
- Name of the Property
PageException
public Object call(PageContext pc, Collection.Key methodName, Object[] arguments) throws PageException
Objects
call
in interface Objects
call
in class StructSupport
methodName
- name of the method to callarguments
- arguments to call method with
PageException
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
removeEL
in class StructImpl
key
- key of the collection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |