|
||||||||||
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.CatchBlock
public class CatchBlock
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 |
MESSAGE
|
static Collection.Key |
STACK_TRACE
|
static Collection.Key |
TAG_CONTEXT
|
Fields inherited from class railo.runtime.type.StructImpl |
---|
TYPE_SOFT |
Fields inherited from interface railo.runtime.type.Struct |
---|
TYPE_LINKED, TYPE_REGULAR, TYPE_SYNC, TYPE_WEAKED |
Constructor Summary | |
---|---|
CatchBlock(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)
calls a method of the object |
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)
call a method of the Object with named arguments |
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)
|
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)
return property or getter of the ContextCollection |
Object |
get(PageContext pc,
String key,
Object defaultValue)
return property |
PageException |
getPageException()
FUTURE add to interface |
boolean |
isInitalized()
|
Iterator |
keyIterator()
|
Collection.Key[] |
keys()
|
String[] |
keysAsString()
|
Set |
keySet()
|
void |
print(PageContext pc)
|
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception |
Object |
remove(String key)
|
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)
sets a property (Data Member) value of the object |
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)
sets a property (Data Member) value of the object |
int |
size()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
Collection |
values()
|
Methods inherited from class railo.runtime.type.StructImpl |
---|
clear, containsKey, copy, valueIterator |
Methods inherited from class railo.runtime.type.util.StructSupport |
---|
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, clone, compareTo, compareTo, compareTo, compareTo, containsKey, containsKey, equals, get, get, get, invalidKey, isEmpty, iterator, put, putAll, remove, set, setEL, sizeOf, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface railo.runtime.op.Castable |
---|
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, compareTo, compareTo, compareTo, compareTo |
Methods inherited from interface java.util.Map |
---|
hashCode |
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 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 CatchBlock(PageExceptionImpl pe)
Method Detail |
---|
public PageException getPageException()
public String castToString() throws ExpressionException
Castable
castToString
in interface Castable
castToString
in class StructSupport
ExpressionException
StructSupport.castToString()
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
castToString
in class StructSupport
StructSupport.castToString(java.lang.String)
public boolean containsValue(Object value)
containsValue
in interface Map
containsValue
in class StructImpl
StructImpl.containsValue(java.lang.Object)
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
duplicate
in class StructImpl
StructImpl.duplicate(boolean)
public Set entrySet()
entrySet
in interface Map
entrySet
in class StructSupport
StructSupport.entrySet()
public void print(PageContext pc)
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
get
in class StructImpl
key
- key of the value to get
StructImpl.get(railo.runtime.type.Collection.Key, java.lang.Object)
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
StructImpl.set(railo.runtime.type.Collection.Key, java.lang.Object)
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
StructImpl.setEL(railo.runtime.type.Collection.Key, java.lang.Object)
public int size()
size
in interface Map
size
in interface Collection
size
in class StructImpl
StructImpl.size()
public Collection.Key[] keys()
keys
in interface Collection
keys
in class StructImpl
StructImpl.keys()
public String[] keysAsString()
keysAsString
in interface Collection
keysAsString
in class StructImpl
StructImpl.keysAsString()
public Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
remove
in class StructImpl
key
- key of the collection
PageException
Collection.remove(railo.runtime.type.Collection.Key)
public Iterator keyIterator()
keyIterator
in interface Iteratorable
keyIterator
in class StructImpl
StructImpl.keyIterator()
public Set keySet()
keySet
in interface Map
keySet
in class StructSupport
StructSupport.keySet()
public Collection values()
values
in interface Map
values
in class StructImpl
StructImpl.values()
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class StructSupport
railo.runtime.type.StructImpl#toDumpData(railo.runtime.PageContext, int)
public Object call(PageContext pc, String methodName, Object[] arguments) throws PageException
Objects
call
in interface Objects
methodName
- name of the method to callarguments
- arguments to call method with
PageException
public Object callWithNamedValues(PageContext pc, String methodName, Struct args) throws PageException
Objects
callWithNamedValues
in interface Objects
pc
- PageContextmethodName
- name of the methodargs
- Named Arguments for the method
PageException
public Object callWithNamedValues(PageContext pc, Collection.Key methodName, Struct args) throws PageException
Objects
callWithNamedValues
in interface Objects
pc
- PageContextmethodName
- name of the methodargs
- Named Arguments for the method
PageException
public boolean isInitalized()
isInitalized
in interface Objects
public Object set(PageContext pc, String propertyName, Object value) throws PageException
Objects
set
in interface Objects
propertyName
- property name to setvalue
- value to insert
PageException
public Object set(PageContext pc, Collection.Key propertyName, Object value) throws PageException
Objects
set
in interface Objects
propertyName
- property name to setvalue
- value to insert
PageException
public Object setEL(PageContext pc, String propertyName, Object value)
Objects
setEL
in interface Objects
propertyName
- property name to setvalue
- value to insert
public Object setEL(PageContext pc, Collection.Key propertyName, Object value)
Objects
setEL
in interface Objects
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
Collection.get(railo.runtime.type.Collection.Key)
public Object get(PageContext pc, String key, Object defaultValue)
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
public Object get(PageContext pc, Collection.Key key, Object defaultValue)
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
public Object get(PageContext pc, String key) throws PageException
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
PageException
public Object get(PageContext pc, Collection.Key key) throws PageException
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
PageException
public Object call(PageContext pc, Collection.Key methodName, Object[] arguments) throws PageException
Objects
call
in interface Objects
methodName
- name of the method to callarguments
- arguments to call method with
PageException
public Object remove(String key) throws PageException
remove
in class StructImpl
PageException
railo.runtime.type.Collection#remove(java.lang.String)
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
removeEL
in class StructImpl
key
- key of the collection
Collection.removeEL(railo.runtime.type.Collection.Key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |