org.quattor.pan.dml.functions
Class IsOfType

java.lang.Object
  extended by org.quattor.pan.dml.AbstractOperation
      extended by org.quattor.pan.dml.functions.BuiltInFunction
          extended by org.quattor.pan.dml.functions.IsOfType
All Implemented Interfaces:
Operation
Direct Known Subclasses:
IsValueOfType, IsVariableOfType

public abstract class IsOfType
extends BuiltInFunction

This is the parent class for those classes that implement the type checking functions of pan (e.g. exists(), is_string(), is_boolean(), etc.). This abstract class will choose a subclass based on the given arguments.

Author:
loomis

Field Summary
protected  java.lang.Class<? extends Element> type
           
 
Fields inherited from class org.quattor.pan.dml.functions.BuiltInFunction
name
 
Fields inherited from class org.quattor.pan.dml.AbstractOperation
ops, sourceRange
 
Constructor Summary
protected IsOfType(java.lang.String name, SourceRange sourceRange, java.lang.Class<? extends Element> type, Operation... operations)
           
 
Method Summary
static Operation getInstance(SourceRange sourceRange, java.lang.Class<? extends Element> type, java.lang.String name, Operation... operations)
           
 
Methods inherited from class org.quattor.pan.dml.functions.BuiltInFunction
throwExceptionIfCompileTimeContext, toString
 
Methods inherited from class org.quattor.pan.dml.AbstractOperation
calculateArgs, calculateTerms, checkInvalidSelfContext, checkRestrictedContext, execute, getOperations, getSourceRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

protected java.lang.Class<? extends Element> type
Constructor Detail

IsOfType

protected IsOfType(java.lang.String name,
                   SourceRange sourceRange,
                   java.lang.Class<? extends Element> type,
                   Operation... operations)
            throws SyntaxException
Throws:
SyntaxException
Method Detail

getInstance

public static Operation getInstance(SourceRange sourceRange,
                                    java.lang.Class<? extends Element> type,
                                    java.lang.String name,
                                    Operation... operations)
                             throws SyntaxException
Throws:
SyntaxException


Copyright © 2011 Quattor. All Rights Reserved.