org.quattor.pan.dml.functions
Class BuiltInFunction
java.lang.Object
org.quattor.pan.dml.AbstractOperation
org.quattor.pan.dml.functions.BuiltInFunction
- All Implemented Interfaces:
- Operation
- Direct Known Subclasses:
- AbstractMatcher, Append, Base64Decode, Base64Encode, Clone, Create, Debug, DebugSuppressed, Delete, Deprecated, Digest, ErrorMessage, Escape, Exists, FileContents, First, Format, Hash, IfExists, Index, IsOfType, Key, Length, List, Merge, Next, PathExists, Prepend, Replace, Return, Splice, Split, Substr, ToBoolean, ToDouble, ToLong, ToLowerCase, ToString, ToUpperCase, Traceback, TracebackSuppressed, Unescape, Value
public abstract class BuiltInFunction
- extends AbstractOperation
This is just a marker class to identify those classes that are built-in
functions in the pan language. All built-in functions must have a factory
method getInstance(SourceRange, Operation, ...) that allows an instance to be
created. The return value must be an Operation to allow the method to
optimize the given function call.
These restrictions cannot be enforced by the java language itself. They are
enforced through the JUnit test functions associated with this class.
- Author:
- loomis
name
protected final String name
BuiltInFunction
protected BuiltInFunction(String name,
SourceRange sourceRange,
Operation... operations)
throwExceptionIfCompileTimeContext
protected void throwExceptionIfCompileTimeContext(Context context)
toString
public String toString()
- Description copied from class:
AbstractOperation
- Default string representation of an operation is the class' simple name.
- Overrides:
toString in class AbstractOperation
- Returns:
- string of class' simple name
Copyright © 2012 Quattor. All Rights Reserved.