Package org.qdl_lang.util
Class ProcessScalarImpl
- java.lang.Object
-
- org.qdl_lang.util.ProcessScalarImpl
-
- All Implemented Interfaces:
ProcessScalar
- Direct Known Subclasses:
Crypto.DoJWTVerify
,Crypto.ProcessEncryptDecrypt
,Crypto.ProcessJWT
,Crypto.ProcessSymmetricDeorEncrypt
,Crypto.ReadOID.ProcessOIDS
public class ProcessScalarImpl extends Object implements ProcessScalar
Basic (identity) implementation ofProcessScalar
, simply returns each argument unchanged. The default is that the dyadic calls (for stems) just call the monadic ones, so you can usually just get away with implementing one method for any type. If you want some specific error message, you have enough information for that too. This is the most permissive type of processig. This class is designed to do 95% of the work for handling aggregates and is really redundant and boring.
-
-
Constructor Summary
Constructors Constructor Description ProcessScalarImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getDefaultValue(Object value)
This is what makes this the identity function.Object
process(Boolean booleanValue)
Object
process(Long longValue)
Object
process(Object key, Boolean booleanValue)
Object
process(Object key, Long longValue)
Object
process(Object key, String stringValue)
Object
process(Object key, BigDecimal decimalValue)
Object
process(Object key, DyadicFunctionReferenceNode dyadicFunctionReferenceNode)
Object
process(Object key, FunctionReferenceNode frValue)
Object
process(Object key, Module moduleValue)
Object
process(Object key, QDLNull nullValue)
Object
process(String stringValue)
Object
process(BigDecimal decimalValue)
Object
process(DyadicFunctionReferenceNode dyadicFunctionReferenceNode)
Object
process(FunctionReferenceNode frValue)
Object
process(Module moduleValue)
Object
process(QDLNull nullValue)
-
-
-
Method Detail
-
process
public Object process(String stringValue)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(Long longValue)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(BigDecimal decimalValue)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(QDLNull nullValue)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(Boolean booleanValue)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(Module moduleValue)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(FunctionReferenceNode frValue)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(DyadicFunctionReferenceNode dyadicFunctionReferenceNode)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(Object key, Boolean booleanValue)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(Object key, String stringValue)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(Object key, Long longValue)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(Object key, BigDecimal decimalValue)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(Object key, QDLNull nullValue)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(Object key, Module moduleValue)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(Object key, FunctionReferenceNode frValue)
- Specified by:
process
in interfaceProcessScalar
-
process
public Object process(Object key, DyadicFunctionReferenceNode dyadicFunctionReferenceNode)
- Specified by:
process
in interfaceProcessScalar
-
-