Class CatchHandler
- java.lang.Object
-
- com.googlecode.aviator.runtime.type.AviatorObject
-
- com.googlecode.aviator.runtime.function.internal.CatchHandler
-
- All Implemented Interfaces:
java.io.Serializable
public class CatchHandler extends AviatorObject
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.Class<?>>exceptionClassesprivate AviatorFunctionfuncprivate static longserialVersionUID-
Fields inherited from class com.googlecode.aviator.runtime.type.AviatorObject
metadata
-
-
Constructor Summary
Constructors Constructor Description CatchHandler(Env env, AviatorFunction func, java.util.List<java.lang.String> exceptionClassNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AviatorTypegetAviatorType()AviatorFunctiongetFunc()java.lang.ObjectgetValue(java.util.Map<java.lang.String,java.lang.Object> env)intinnerCompare(AviatorObject other, java.util.Map<java.lang.String,java.lang.Object> env)booleanisMatch(java.lang.Class<?> eClass)-
Methods inherited from class com.googlecode.aviator.runtime.type.AviatorObject
add, bitAnd, bitNot, bitOr, bitXor, booleanValue, compare, compareEq, defineValue, deref, desc, div, exponent, getElement, getMetadata, isNull, match, meta, mod, mult, neg, not, numberValue, setValue, shiftLeft, shiftRight, stringValue, sub, toString, unsignedShiftRight, withMeta, withoutMeta
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
func
private final AviatorFunction func
-
exceptionClasses
private final java.util.List<java.lang.Class<?>> exceptionClasses
-
-
Constructor Detail
-
CatchHandler
public CatchHandler(Env env, AviatorFunction func, java.util.List<java.lang.String> exceptionClassNames)
-
-
Method Detail
-
getFunc
public AviatorFunction getFunc()
-
isMatch
public boolean isMatch(java.lang.Class<?> eClass)
-
innerCompare
public int innerCompare(AviatorObject other, java.util.Map<java.lang.String,java.lang.Object> env)
- Specified by:
innerComparein classAviatorObject
-
getAviatorType
public AviatorType getAviatorType()
- Specified by:
getAviatorTypein classAviatorObject
-
getValue
public java.lang.Object getValue(java.util.Map<java.lang.String,java.lang.Object> env)
- Specified by:
getValuein classAviatorObject
-
-