railo.runtime.exp
Class CatchBlock

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

public class CatchBlock
extends StructImpl
implements 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 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

MESSAGE

public static final Collection.Key MESSAGE

DETAIL

public static final Collection.Key DETAIL

ERROR_CODE

public static final Collection.Key ERROR_CODE

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

CatchBlock

public CatchBlock(PageExceptionImpl pe)
Method Detail

getPageException

public PageException getPageException()
FUTURE add to interface

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
See Also:
StructSupport.castToString()

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
See Also:
StructSupport.castToString(java.lang.String)

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map
Overrides:
containsValue in class StructImpl
See Also:
StructImpl.containsValue(java.lang.Object)

duplicate

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

entrySet

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

print

public void print(PageContext pc)

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
See Also:
StructImpl.get(railo.runtime.type.Collection.Key, java.lang.Object)

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
See Also:
StructImpl.set(railo.runtime.type.Collection.Key, java.lang.Object)

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
See Also:
StructImpl.setEL(railo.runtime.type.Collection.Key, java.lang.Object)

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
See Also:
StructImpl.size()

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
See Also:
StructImpl.keys()

keysAsString

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

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
See Also:
Collection.remove(railo.runtime.type.Collection.Key)

keyIterator

public Iterator keyIterator()
Specified by:
keyIterator in interface Iteratorable
Overrides:
keyIterator in class StructImpl
Returns:
return a Iterator for Keys as String
See Also:
StructImpl.keyIterator()

keySet

public Set keySet()
Specified by:
keySet in interface Map
Overrides:
keySet in class StructSupport
See Also:
StructSupport.keySet()

values

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

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
See Also:
railo.runtime.type.StructImpl#toDumpData(railo.runtime.PageContext, int)

call

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

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

callWithNamedValues

public Object callWithNamedValues(PageContext pc,
                                  String 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
Parameters:
pc - PageContext
methodName - name of the method
args - Named Arguments for the method
Returns:
return result of the method
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
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()
Specified by:
isInitalized in interface Objects
Returns:
returns if embeded Object is init

set

public Object set(PageContext pc,
                  String 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
propertyName - property name to set
value - value to insert
Returns:
value set to property
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
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)
Description copied from interface: Objects
sets a property (Data Member) value of the object

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

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
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
See Also:
Collection.get(railo.runtime.type.Collection.Key)

get

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

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

get

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

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

get

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

Specified by:
get in interface Objects
Parameters:
pc - PageContext
key - Name of the Property
Returns:
return value of the Property
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
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
methodName - name of the method to call
arguments - arguments to call method with
Returns:
return value of the method
Throws:
PageException

remove

public Object remove(String key)
              throws PageException
Overrides:
remove in class StructImpl
Throws:
PageException
See Also:
railo.runtime.type.Collection#remove(java.lang.String)

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
See Also:
Collection.removeEL(railo.runtime.type.Collection.Key)


Copyright © 2012 Railo