vishnu.parser.expressions
Class SQLAttribute

java.lang.Object
  extended by vishnu.parser.expressions.SQLAttribute
All Implemented Interfaces:
SQLLeafOperand, SQLOperand

public class SQLAttribute
extends java.lang.Object
implements SQLLeafOperand

Author:
Hernan Rancati TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
 

Constructor Summary
SQLAttribute(int index)
           
SQLAttribute(java.lang.String name)
           
 
Method Summary
 boolean equals(SQLOperand o)
           
 Value evaluate(Record r)
          evalua el resultado de la expresion representada por este operador sobre el registro r.
 int hashCode()
           
 boolean hasIndex()
           
 boolean hasName()
           
 int index()
           
 java.lang.String name()
           
 void name(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLAttribute

public SQLAttribute(int index)

SQLAttribute

public SQLAttribute(java.lang.String name)
Method Detail

hasName

public boolean hasName()

name

public void name(java.lang.String name)

hasIndex

public boolean hasIndex()

index

public int index()

name

public java.lang.String name()

evaluate

public Value evaluate(Record r)
Description copied from interface: SQLOperand
evalua el resultado de la expresion representada por este operador sobre el registro r.

Specified by:
evaluate in interface SQLOperand

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(SQLOperand o)
Specified by:
equals in interface SQLOperand

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object