railo.runtime.exp
Class CatchBlockImpl

java.lang.Object
  extended by railo.runtime.type.util.StructSupport
      extended by railo.runtime.type.StructImpl
          extended by railo.runtime.exp.CatchBlockImpl
All Implemented Interfaces:
Serializable, Cloneable, Map, Dumpable, CatchBlock, Castable, Collection, ForEachIteratorable, Iteratorable, Objects, Sizeable, Struct

public class CatchBlockImpl
extends StructImpl
implements CatchBlock, Castable, Objects

See Also:
Serialized Form

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

MESSAGE

public static final Collection.Key MESSAGE

DETAIL

public static final Collection.Key DETAIL

ERROR_CODE

public static final Collection.Key ERROR_CODE

EXTENDEDINFO

public static final Collection.Key EXTENDEDINFO

EXTENDED_INFO

public static final Collection.Key EXTENDED_INFO

TAG_CONTEXT

public static final Collection.Key TAG_CONTEXT

STACK_TRACE

public static final Collection.Key STACK_TRACE

ADDITIONAL

public static final Collection.Key ADDITIONAL
Constructor Detail

CatchBlockImpl

public CatchBlockImpl(PageExceptionImpl pe)
Method Detail

getPageException

public PageException getPageException()
Specified by:
getPageException in interface CatchBlock
Returns:
the pe

castToString

public String castToString()
                    throws ExpressionException
Description copied from interface: Castable
cast the castable value to a string, other than the Method toString, this Method can throw a Exception

Specified by:
castToString in interface Castable
Overrides:
castToString in class StructSupport
Returns:
String representation of the Object
Throws:
ExpressionException

castToString

public String castToString(String defaultValue)
Description copied from interface: Castable
cast the castable value to a string, return the default value, when the method is not castable

Specified by:
castToString in interface Castable
Overrides:
castToString in class StructSupport
Returns:
String representation of the Object

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map
Overrides:
containsValue in class StructImpl

duplicate

public Collection duplicate(boolean deepCopy)
Specified by:
duplicate in interface Collection
Overrides:
duplicate in class StructImpl

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map
Overrides:
entrySet in class StructSupport

print

public void print(PageContext pc)
Specified by:
print in interface CatchBlock

get

public Object get(Collection.Key key,
                  Object defaultValue)
Description copied from interface: Collection
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null

Specified by:
get in interface Collection
Overrides:
get in class StructImpl
Parameters:
key - key of the value to get
Returns:
value on key position or null

set

public Object set(Collection.Key key,
                  Object value)
           throws PageException
Description copied from interface: Collection
sets a value to the collection

Specified by:
set in interface Collection
Overrides:
set in class StructImpl
Parameters:
key - key of the new value
value - value to set
Returns:
value setted
Throws:
PageException

setEL

public Object setEL(Collection.Key key,
                    Object value)
Description copied from interface: Collection
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null

Specified by:
setEL in interface Collection
Overrides:
setEL in class StructImpl
Parameters:
key - key of the value to get
value - value to set
Returns:
value on key position or null

size

public int size()
Specified by:
size in interface Map
Specified by:
size in interface Collection
Overrides:
size in class StructImpl
Returns:
the size of the collection

keys

public Collection.Key[] keys()
Specified by:
keys in interface Collection
Overrides:
keys in class StructImpl
Returns:
returns a string array of all keys in the collection

remove

public Object remove(Collection.Key key)
              throws PageException
Description copied from interface: Collection
removes value from collection and return it when it exists, otherwise throws a exception

Specified by:
remove in interface Collection
Overrides:
remove in class StructImpl
Parameters:
key - key of the collection
Returns:
removed Object
Throws:
PageException

keyIterator

public Iterator<Collection.Key> keyIterator()
Specified by:
keyIterator in interface Iteratorable
Overrides:
keyIterator in class StructImpl
Returns:
return a Iterator for Keys as Collection.Keys

keysAsStringIterator

public Iterator<String> keysAsStringIterator()
Specified by:
keysAsStringIterator in interface Iteratorable
Overrides:
keysAsStringIterator in class StructImpl
Returns:
return a Iterator for Keys as String

entryIterator

public Iterator<Map.Entry<Collection.Key,Object>> entryIterator()
Specified by:
entryIterator in interface Iteratorable
Overrides:
entryIterator in class StructImpl

valueIterator

public Iterator<Object> valueIterator()
Specified by:
valueIterator in interface Iteratorable
Overrides:
valueIterator in class StructImpl
Returns:
return a Iterator for Values

values

public Collection values()
Specified by:
values in interface Map
Overrides:
values in class StructImpl

toDumpData

public DumpData toDumpData(PageContext pageContext,
                           int maxlevel,
                           DumpProperties dp)
Description copied from interface: Dumpable
method to print out information to a object as HTML

Specified by:
toDumpData in interface Dumpable
Overrides:
toDumpData in class StructSupport
Returns:
HTML print out

call

public Object call(PageContext pc,
                   String methodName,
                   Object[] arguments)
            throws PageException
Throws:
PageException

callWithNamedValues

public Object callWithNamedValues(PageContext pc,
                                  String methodName,
                                  Struct args)
                           throws PageException
Throws:
PageException

callWithNamedValues

public Object callWithNamedValues(PageContext pc,
                                  Collection.Key methodName,
                                  Struct args)
                           throws PageException
Description copied from interface: Objects
call a method of the Object with named arguments

Specified by:
callWithNamedValues in interface Objects
Overrides:
callWithNamedValues in class StructSupport
Parameters:
pc - PageContext
methodName - name of the method
args - Named Arguments for the method
Returns:
return result of the method
Throws:
PageException

isInitalized

public boolean isInitalized()

set

public Object set(PageContext pc,
                  String propertyName,
                  Object value)
           throws PageException
Throws:
PageException

set

public Object set(PageContext pc,
                  Collection.Key propertyName,
                  Object value)
           throws PageException
Description copied from interface: Objects
sets a property (Data Member) value of the object

Specified by:
set in interface Objects
Overrides:
set in class StructSupport
propertyName - property name to set
value - value to insert
Returns:
value set to property
Throws:
PageException

setEL

public Object setEL(PageContext pc,
                    String propertyName,
                    Object value)

setEL

public Object setEL(PageContext pc,
                    Collection.Key propertyName,
                    Object value)
Description copied from interface: Objects
sets a property (Data Member) value of the object

Specified by:
setEL in interface Objects
Overrides:
setEL in class StructSupport
propertyName - property name to set
value - value to insert
Returns:
value set to property

get

public Object get(Collection.Key key)
           throws PageException
Description copied from interface: Collection
return a value from the collection

Specified by:
get in interface Collection
Overrides:
get in class StructImpl
Parameters:
key - key of the value to get must be lower case
Returns:
value on key position
Throws:
PageException

get

public Object get(PageContext pc,
                  String key,
                  Object defaultValue)

get

public Object get(PageContext pc,
                  Collection.Key key,
                  Object defaultValue)
Description copied from interface: Objects
return property

Specified by:
get in interface Objects
Overrides:
get in class StructSupport
Parameters:
pc - PageContext
key - Name of the Property
Returns:
return value of the Property

get

public Object get(PageContext pc,
                  String key)
           throws PageException
Throws:
PageException

get

public Object get(PageContext pc,
                  Collection.Key key)
           throws PageException
Description copied from interface: Objects
return property or getter of the ContextCollection

Specified by:
get in interface Objects
Overrides:
get in class StructSupport
Parameters:
pc - PageContext
key - Name of the Property
Returns:
return value of the Property
Throws:
PageException

call

public Object call(PageContext pc,
                   Collection.Key methodName,
                   Object[] arguments)
            throws PageException
Description copied from interface: Objects
calls a method of the object

Specified by:
call in interface Objects
Overrides:
call in class StructSupport
methodName - name of the method to call
arguments - arguments to call method with
Returns:
return value of the method
Throws:
PageException

removeEL

public Object removeEL(Collection.Key key)
Description copied from interface: Collection
removes value from collection and return it when it exists, otherwise returns null

Specified by:
removeEL in interface Collection
Overrides:
removeEL in class StructImpl
Parameters:
key - key of the collection
Returns:
removed Object


Copyright © 2012 Railo