- java.lang.Object
-
- net.sf.jsqlparser.parser.ASTNodeAccessImpl
-
- net.sf.jsqlparser.expression.TrimFunction
-
- All Implemented Interfaces:
java.io.Serializable
,Expression
,Model
,ASTNodeAccess
public class TrimFunction extends ASTNodeAccessImpl implements Expression
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrimFunction.TrimSpecification
-
Field Summary
Fields Modifier and Type Field Description private Expression
expression
private Expression
fromExpression
private boolean
isUsingFromKeyword
private TrimFunction.TrimSpecification
trimSpecification
-
Constructor Summary
Constructors Constructor Description TrimFunction()
TrimFunction(TrimFunction.TrimSpecification trimSpecification, Expression expression, Expression fromExpression, boolean isUsingFromKeyword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,S>
Taccept(ExpressionVisitor<T> expressionVisitor, S context)
java.lang.StringBuilder
appendTo(java.lang.StringBuilder builder)
Expression
getExpression()
Expression
getFromExpression()
TrimFunction.TrimSpecification
getTrimSpecification()
boolean
isUsingFromKeyword()
void
setExpression(Expression expression)
void
setFromExpression(Expression fromExpression)
void
setTrimSpecification(TrimFunction.TrimSpecification trimSpecification)
void
setUsingFromKeyword(boolean useFromKeyword)
java.lang.String
toString()
TrimFunction
withExpression(Expression expression)
TrimFunction
withFromExpression(Expression fromExpression)
TrimFunction
withTrimSpecification(TrimFunction.TrimSpecification trimSpecification)
TrimFunction
withUsingFromKeyword(boolean useFromKeyword)
-
Methods inherited from class net.sf.jsqlparser.parser.ASTNodeAccessImpl
getASTNode, getParent, getParent, setASTNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.jsqlparser.parser.ASTNodeAccess
getASTNode, setASTNode
-
Methods inherited from interface net.sf.jsqlparser.expression.Expression
accept
-
-
-
-
Field Detail
-
trimSpecification
private TrimFunction.TrimSpecification trimSpecification
-
expression
private Expression expression
-
fromExpression
private Expression fromExpression
-
isUsingFromKeyword
private boolean isUsingFromKeyword
-
-
Constructor Detail
-
TrimFunction
public TrimFunction(TrimFunction.TrimSpecification trimSpecification, Expression expression, Expression fromExpression, boolean isUsingFromKeyword)
-
TrimFunction
public TrimFunction()
-
-
Method Detail
-
getTrimSpecification
public TrimFunction.TrimSpecification getTrimSpecification()
-
setTrimSpecification
public void setTrimSpecification(TrimFunction.TrimSpecification trimSpecification)
-
withTrimSpecification
public TrimFunction withTrimSpecification(TrimFunction.TrimSpecification trimSpecification)
-
getExpression
public Expression getExpression()
-
setExpression
public void setExpression(Expression expression)
-
withExpression
public TrimFunction withExpression(Expression expression)
-
getFromExpression
public Expression getFromExpression()
-
setFromExpression
public void setFromExpression(Expression fromExpression)
-
withFromExpression
public TrimFunction withFromExpression(Expression fromExpression)
-
isUsingFromKeyword
public boolean isUsingFromKeyword()
-
setUsingFromKeyword
public void setUsingFromKeyword(boolean useFromKeyword)
-
withUsingFromKeyword
public TrimFunction withUsingFromKeyword(boolean useFromKeyword)
-
accept
public <T,S> T accept(ExpressionVisitor<T> expressionVisitor, S context)
- Specified by:
accept
in interfaceExpression
-
appendTo
public java.lang.StringBuilder appendTo(java.lang.StringBuilder builder)
- Overrides:
appendTo
in classASTNodeAccessImpl
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-