pl.edu.pjwstk.yaod.sbql.engine.queryresulttypes
Class BinderValue

java.lang.Object
  |
  +--pl.edu.pjwstk.yaod.sbql.engine.queryresulttypes.QueryResult
        |
        +--pl.edu.pjwstk.yaod.sbql.engine.queryresulttypes.SingleValue
              |
              +--pl.edu.pjwstk.yaod.sbql.engine.queryresulttypes.BinderValue

public class BinderValue
extends SingleValue

Klasa BinderValue reprezentuje pojedynczy binder, czyli pare (nazwa, rezultat). Jest podstawowym elementem jaki moze byc przechowywany na stosie srodowiskowym w kazdej sekcji. Jest jednym z mozliwych wynikow zapytania QueryResult.

Author:
Jakub Trzetrzelewski

Constructor Summary
BinderValue(java.lang.String name, QueryResult value)
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.String getTypeAsString()
           
 QueryResult getValue()
           
 ActivationRecord nested()
           
 BooleanValue operatorCOMPARE(QueryResult r)
           
 QueryResult operatorCREATELOCAL(EnvironmentalStack ENVS)
           
 QueryResult operatorCREATEPERMANENT(IdentifierValue id)
           
 QueryResult operatorDEREFERENCE()
           
 QueryResult operatorFULLDEREFERENCE()
           
 QueryResult operatorMIXEDDEREFERENCE()
           
 void operatorPRINT(java.lang.String st, java.io.PrintWriter out)
           
 QueryResult operatorSPECIALDEREFERENCE()
           
 void operatorXMLPRINT(java.lang.String st, java.io.PrintWriter out)
           
 void setName(java.lang.String name)
           
 QueryResult setValue(QueryResult value)
           
 void show(java.lang.String st, java.io.PrintWriter out)
           
 
Methods inherited from class pl.edu.pjwstk.yaod.sbql.engine.queryresulttypes.SingleValue
getNextResultAt, getNumberOfResults, operatorAS, operatorASCENDING, operatorBAG, operatorCOMMA, operatorCOUNT, operatorEXISTS, operatorFLAT, operatorGROUPAS, operatorINCLUSION, operatorSEQUENCE, operatorSTRUCT, operatorUNION, operatorUNIQUE
 
Methods inherited from class pl.edu.pjwstk.yaod.sbql.engine.queryresulttypes.QueryResult
addBag, addResult, addSequence, addStruct, getLongestTypeAsSpaceString, getPreparedTypeAsString, getResultAt, getSize, getType, operatorABSOLUTEVALUE, operatorASSIGN, operatorAVERAGE, operatorCONDITION, operatorCONJUNCTION, operatorCOSINE, operatorCREATEPERMANENT, operatorDELETE, operatorDESCENDING, operatorDIFFERENCE, operatorDISJUNCTION, operatorDIVIDE, operatorDIVIDEASSIGN, operatorEQUAL, operatorEXPONENT, operatorGREATER, operatorGREATEREQUAL, operatorINSERT, operatorINSERTINTO, operatorINTERSECTION, operatorLOGARITHM, operatorLOWER, operatorLOWEREQUAL, operatorMAXIMUM, operatorMINIMUM, operatorMINUS, operatorMINUS, operatorMINUSASSIGN, operatorMODULO, operatorMODULOASSIGN, operatorNEGATION, operatorNOTEQUAL, operatorPLUS, operatorPLUS, operatorPLUSASSIGN, operatorPOWER, operatorPREDECREMENT, operatorPREINCREMENT, operatorPRINT, operatorRANGE, operatorRANGE, operatorRENAMETO, operatorSIGNUM, operatorSINE, operatorSQUAREROOT, operatorSUM, operatorSYMMETRICDIFFERENCE, operatorTIMES, operatorTIMESASSIGN, operatorTOBAG, operatorTODOUBLE, operatorTOINTEGER, operatorTOSEQUENCE, operatorTOSTRING, operatorTOSTRUCT, operatorUPDATETO, operatorXMLPRINT, setResultAt, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinderValue

public BinderValue(java.lang.String name,
                   QueryResult value)
Method Detail

getTypeAsString

public java.lang.String getTypeAsString()
Overrides:
getTypeAsString in class QueryResult

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getValue

public QueryResult getValue()

setValue

public QueryResult setValue(QueryResult value)

nested

public ActivationRecord nested()
Overrides:
nested in class QueryResult

operatorDEREFERENCE

public QueryResult operatorDEREFERENCE()
                                throws TypeMismatchException
Overrides:
operatorDEREFERENCE in class QueryResult

operatorFULLDEREFERENCE

public QueryResult operatorFULLDEREFERENCE()
                                    throws TypeMismatchException
Overrides:
operatorFULLDEREFERENCE in class QueryResult

operatorSPECIALDEREFERENCE

public QueryResult operatorSPECIALDEREFERENCE()
                                       throws TypeMismatchException
Overrides:
operatorSPECIALDEREFERENCE in class QueryResult

operatorMIXEDDEREFERENCE

public QueryResult operatorMIXEDDEREFERENCE()
                                     throws TypeMismatchException
Overrides:
operatorMIXEDDEREFERENCE in class QueryResult

operatorCOMPARE

public BooleanValue operatorCOMPARE(QueryResult r)
                             throws TypeMismatchException
Overrides:
operatorCOMPARE in class QueryResult

show

public void show(java.lang.String st,
                 java.io.PrintWriter out)
Overrides:
show in class QueryResult

operatorPRINT

public void operatorPRINT(java.lang.String st,
                          java.io.PrintWriter out)
                   throws TypeMismatchException
Overrides:
operatorPRINT in class QueryResult

operatorXMLPRINT

public void operatorXMLPRINT(java.lang.String st,
                             java.io.PrintWriter out)
                      throws TypeMismatchException
Overrides:
operatorXMLPRINT in class QueryResult

operatorCREATELOCAL

public QueryResult operatorCREATELOCAL(EnvironmentalStack ENVS)
                                throws TypeMismatchException
Overrides:
operatorCREATELOCAL in class QueryResult

operatorCREATEPERMANENT

public QueryResult operatorCREATEPERMANENT(IdentifierValue id)
                                    throws TypeMismatchException
Overrides:
operatorCREATEPERMANENT in class QueryResult