public class CatchBlockImpl extends StructImpl implements CatchBlock, Castable, Objects
Collection.Key
Modifier and Type | Field and Description |
---|---|
static Collection.Key |
ADDITIONAL |
static Collection.Key |
ERROR_CODE |
static Collection.Key |
EXTENDED_INFO |
static Collection.Key |
EXTENDEDINFO |
static Collection.Key |
STACK_TRACE |
static Collection.Key |
TAG_CONTEXT |
TYPE_UNDEFINED
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED
Constructor and Description |
---|
CatchBlockImpl(PageExceptionImpl pe) |
Modifier and Type | Method and Description |
---|---|
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() |
clear, containsKey, copy, equals, g, g, getType, hashCode, remove
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
clear, clone, containsKey, containsKey, get, get, set, setEL
getIterator
clear, containsKey, equals, get, hashCode, isEmpty, keySet, put, putAll, remove
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, compareTo, compareTo, compareTo, compareTo
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
public CatchBlockImpl(PageExceptionImpl pe)
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 getpublic 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 setPageException
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 setpublic 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 collectionPageException
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 methodPageException
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 insertPageException
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 insertpublic 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 casePageException
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 Propertypublic 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 PropertyPageException
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 withPageException
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
removeEL
in class StructImpl
key
- key of the collectionCopyright © 2015 Lucee