net.sf.jsqlparser.expression
Class Function

java.lang.Object
  extended by net.sf.jsqlparser.expression.Function
All Implemented Interfaces:
Expression

public class Function
extends java.lang.Object
implements Expression

A function as MAX,COUNT...


Field Summary
private  boolean allColumns
           
private  boolean isEscaped
           
private  java.lang.String name
           
private  ExpressionList parameters
           
 
Constructor Summary
Function()
           
 
Method Summary
 void accept(ExpressionVisitor expressionVisitor)
           
 java.lang.String getName()
          The name of he function, i.e.
 ExpressionList getParameters()
          The list of parameters of the function (if any, else null) If the parameter is "*", allColumns is set to true
 boolean isAllColumns()
          true if the parameter to the function is "*"
 boolean isEscaped()
          Return true if it's in the form "{fn function_body() }"
 void setAllColumns(boolean b)
           
 void setEscaped(boolean isEscaped)
           
 void setName(java.lang.String string)
           
 void setParameters(ExpressionList list)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name

parameters

private ExpressionList parameters

allColumns

private boolean allColumns

isEscaped

private boolean isEscaped
Constructor Detail

Function

public Function()
Method Detail

accept

public void accept(ExpressionVisitor expressionVisitor)
Specified by:
accept in interface Expression

getName

public java.lang.String getName()
The name of he function, i.e. "MAX"

Returns:
the name of he function

setName

public void setName(java.lang.String string)

isAllColumns

public boolean isAllColumns()
true if the parameter to the function is "*"

Returns:
true if the parameter to the function is "*"

setAllColumns

public void setAllColumns(boolean b)

getParameters

public ExpressionList getParameters()
The list of parameters of the function (if any, else null) If the parameter is "*", allColumns is set to true

Returns:
the list of parameters of the function (if any, else null)

setParameters

public void setParameters(ExpressionList list)

isEscaped

public boolean isEscaped()
Return true if it's in the form "{fn function_body() }"

Returns:
true if it's java-escaped

setEscaped

public void setEscaped(boolean isEscaped)

toString

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