- java.lang.Object
-
- net.sf.jsqlparser.parser.ASTNodeAccessImpl
-
- net.sf.jsqlparser.expression.JsonFunction
-
- All Implemented Interfaces:
java.io.Serializable
,Expression
,Model
,ASTNodeAccess
public class JsonFunction extends ASTNodeAccessImpl implements Expression
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<JsonFunctionExpression>
expressions
private JsonFunctionType
functionType
private java.util.ArrayList<JsonKeyValuePair>
keyValuePairs
private JsonAggregateOnNullType
onNullType
private JsonAggregateUniqueKeysType
uniqueKeysType
-
Constructor Summary
Constructors Constructor Description JsonFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,S>
Taccept(ExpressionVisitor<T> expressionVisitor, S context)
void
add(int i, JsonFunctionExpression expression)
void
add(int i, JsonKeyValuePair keyValuePair)
boolean
add(JsonFunctionExpression expression)
boolean
add(JsonKeyValuePair keyValuePair)
java.lang.StringBuilder
append(java.lang.StringBuilder builder)
java.lang.StringBuilder
appendArray(java.lang.StringBuilder builder)
java.lang.StringBuilder
appendMySqlObject(java.lang.StringBuilder builder)
java.lang.StringBuilder
appendObject(java.lang.StringBuilder builder)
java.lang.StringBuilder
appendPostgresObject(java.lang.StringBuilder builder)
JsonFunctionExpression
getExpression(int i)
java.util.ArrayList<JsonFunctionExpression>
getExpressions()
JsonKeyValuePair
getKeyValuePair(int i)
java.util.ArrayList<JsonKeyValuePair>
getKeyValuePairs()
JsonAggregateOnNullType
getOnNullType()
JsonFunctionType
getType()
JsonAggregateUniqueKeysType
getUniqueKeysType()
boolean
isEmpty()
void
setOnNullType(JsonAggregateOnNullType onNullType)
void
setType(java.lang.String typeName)
void
setType(JsonFunctionType type)
void
setUniqueKeysType(JsonAggregateUniqueKeysType uniqueKeysType)
java.lang.String
toString()
JsonFunction
withOnNullType(JsonAggregateOnNullType onNullType)
JsonFunction
withType(java.lang.String typeName)
JsonFunction
withType(JsonFunctionType type)
JsonFunction
withUniqueKeysType(JsonAggregateUniqueKeysType uniqueKeysType)
-
Methods inherited from class net.sf.jsqlparser.parser.ASTNodeAccessImpl
appendTo, 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
-
keyValuePairs
private final java.util.ArrayList<JsonKeyValuePair> keyValuePairs
-
expressions
private final java.util.ArrayList<JsonFunctionExpression> expressions
-
functionType
private JsonFunctionType functionType
-
onNullType
private JsonAggregateOnNullType onNullType
-
uniqueKeysType
private JsonAggregateUniqueKeysType uniqueKeysType
-
-
Method Detail
-
getKeyValuePairs
public java.util.ArrayList<JsonKeyValuePair> getKeyValuePairs()
-
getExpressions
public java.util.ArrayList<JsonFunctionExpression> getExpressions()
-
getKeyValuePair
public JsonKeyValuePair getKeyValuePair(int i)
-
getExpression
public JsonFunctionExpression getExpression(int i)
-
add
public boolean add(JsonKeyValuePair keyValuePair)
-
add
public void add(int i, JsonKeyValuePair keyValuePair)
-
add
public boolean add(JsonFunctionExpression expression)
-
add
public void add(int i, JsonFunctionExpression expression)
-
isEmpty
public boolean isEmpty()
-
getOnNullType
public JsonAggregateOnNullType getOnNullType()
-
setOnNullType
public void setOnNullType(JsonAggregateOnNullType onNullType)
-
withOnNullType
public JsonFunction withOnNullType(JsonAggregateOnNullType onNullType)
-
getUniqueKeysType
public JsonAggregateUniqueKeysType getUniqueKeysType()
-
setUniqueKeysType
public void setUniqueKeysType(JsonAggregateUniqueKeysType uniqueKeysType)
-
withUniqueKeysType
public JsonFunction withUniqueKeysType(JsonAggregateUniqueKeysType uniqueKeysType)
-
getType
public JsonFunctionType getType()
-
setType
public void setType(JsonFunctionType type)
-
setType
public void setType(java.lang.String typeName)
-
withType
public JsonFunction withType(JsonFunctionType type)
-
withType
public JsonFunction withType(java.lang.String typeName)
-
accept
public <T,S> T accept(ExpressionVisitor<T> expressionVisitor, S context)
- Specified by:
accept
in interfaceExpression
-
append
public java.lang.StringBuilder append(java.lang.StringBuilder builder)
-
appendObject
public java.lang.StringBuilder appendObject(java.lang.StringBuilder builder)
-
appendPostgresObject
public java.lang.StringBuilder appendPostgresObject(java.lang.StringBuilder builder)
-
appendMySqlObject
public java.lang.StringBuilder appendMySqlObject(java.lang.StringBuilder builder)
-
appendArray
public java.lang.StringBuilder appendArray(java.lang.StringBuilder builder)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-