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
|
Field Summary |
protected java.lang.String |
name
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
protected final java.lang.String name
BuiltInFunction
protected BuiltInFunction(java.lang.String name,
SourceRange sourceRange,
Operation... operations)
throwExceptionIfCompileTimeContext
protected void throwExceptionIfCompileTimeContext(Context context)
toString
public java.lang.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 © 2011 Quattor. All Rights Reserved.