Class FunctionCall
java.lang.Object
tech.oxfordsemantic.jrdfox.logic.LogicObject
tech.oxfordsemantic.jrdfox.logic.expression.Expression
tech.oxfordsemantic.jrdfox.logic.expression.FunctionCall
- All Implemented Interfaces:
java.io.Serializable
public class FunctionCall extends Expression
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FunctionCall.ScalarValue
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ADD
static java.lang.String
DIVIDE
static java.lang.String
EQUAL
static java.lang.String
GREATER_EQUAL_THAN
static java.lang.String
GREATER_THAN
static java.lang.String
LESS_EQUAL_THAN
static java.lang.String
LESS_THAN
static java.lang.String
LOGICAL_AND
static java.lang.String
LOGICAL_NOT
static java.lang.String
LOGICAL_OR
static java.lang.String
MULTIPLY
static java.lang.String
NOT_EQUAL
static java.lang.String
NUMERIC_UNARY_MINUS
static java.lang.String
NUMERIC_UNARY_PLUS
static java.lang.String
SUBTRACT
-
Method Summary
Modifier and Type Method Description <E> E
accept(LogicVisitor<E> visitor)
static FunctionCall
add(java.util.List<Expression> arguments)
static FunctionCall
add(Expression... arguments)
static FunctionCall
create(java.lang.String functionName, boolean isDistinct, java.util.List<FunctionCall.ScalarValue> scalarValues, java.util.List<Expression> arguments)
static FunctionCall
create(java.lang.String functionName, boolean isDistinct, FunctionCall.ScalarValue[] scalarValues, Expression... arguments)
static FunctionCall
create(java.lang.String functionName, java.util.List<Expression> arguments)
static FunctionCall
create(java.lang.String functionName, Expression... arguments)
static FunctionCall
divide(Expression argument1, Expression argument2)
static FunctionCall
equal(Expression argument1, Expression argument2)
tech.oxfordsemantic.jrdfox.util.ImmutableArrayList<Expression>
getArguments()
java.lang.String
getFunctionName()
boolean
getIsDistinct()
java.util.List<FunctionCall.ScalarValue>
getScalarValues()
static FunctionCall
greaterEqualThan(Expression argument1, Expression argument2)
static FunctionCall
greaterThan(Expression argument1, Expression argument2)
boolean
isPrintedAsFunction()
static FunctionCall
lessEqualThan(Expression argument1, Expression argument2)
static FunctionCall
lessThan(Expression argument1, Expression argument2)
static FunctionCall
logicalAnd(java.util.List<Expression> arguments)
static FunctionCall
logicalAnd(Expression... arguments)
static FunctionCall
logicalNot(Expression argument)
static FunctionCall
logicalOr(java.util.List<Expression> arguments)
static FunctionCall
logicalOr(Expression... arguments)
static FunctionCall
multiply(java.util.List<Expression> arguments)
static FunctionCall
multiply(Expression... arguments)
static FunctionCall
notEqual(Expression argument1, Expression argument2)
static FunctionCall
numericUnaryMinus(Expression argument)
static FunctionCall
numericUnaryPlus(Expression argument)
static FunctionCall
subtract(Expression argument1, Expression argument2)
void
toString(Prefixes prefixes, java.util.function.Consumer<java.lang.String> consumer)
Methods inherited from class tech.oxfordsemantic.jrdfox.logic.LogicObject
toString, toString, toString
-
Field Details
-
LOGICAL_OR
public static final java.lang.String LOGICAL_OR- See Also:
- Constant Field Values
-
LOGICAL_AND
public static final java.lang.String LOGICAL_AND- See Also:
- Constant Field Values
-
LOGICAL_NOT
public static final java.lang.String LOGICAL_NOT- See Also:
- Constant Field Values
-
EQUAL
public static final java.lang.String EQUAL- See Also:
- Constant Field Values
-
NOT_EQUAL
public static final java.lang.String NOT_EQUAL- See Also:
- Constant Field Values
-
LESS_THAN
public static final java.lang.String LESS_THAN- See Also:
- Constant Field Values
-
LESS_EQUAL_THAN
public static final java.lang.String LESS_EQUAL_THAN- See Also:
- Constant Field Values
-
GREATER_THAN
public static final java.lang.String GREATER_THAN- See Also:
- Constant Field Values
-
GREATER_EQUAL_THAN
public static final java.lang.String GREATER_EQUAL_THAN- See Also:
- Constant Field Values
-
ADD
public static final java.lang.String ADD- See Also:
- Constant Field Values
-
SUBTRACT
public static final java.lang.String SUBTRACT- See Also:
- Constant Field Values
-
MULTIPLY
public static final java.lang.String MULTIPLY- See Also:
- Constant Field Values
-
DIVIDE
public static final java.lang.String DIVIDE- See Also:
- Constant Field Values
-
NUMERIC_UNARY_PLUS
public static final java.lang.String NUMERIC_UNARY_PLUS- See Also:
- Constant Field Values
-
NUMERIC_UNARY_MINUS
public static final java.lang.String NUMERIC_UNARY_MINUS- See Also:
- Constant Field Values
-
-
Method Details
-
getFunctionName
public java.lang.String getFunctionName() -
getIsDistinct
public boolean getIsDistinct() -
getScalarValues
-
getArguments
-
isPrintedAsFunction
public boolean isPrintedAsFunction() -
accept
- Specified by:
accept
in classLogicObject
-
toString
- Specified by:
toString
in classLogicObject
-
create
public static FunctionCall create(java.lang.String functionName, boolean isDistinct, java.util.List<FunctionCall.ScalarValue> scalarValues, java.util.List<Expression> arguments) -
create
public static FunctionCall create(java.lang.String functionName, boolean isDistinct, FunctionCall.ScalarValue[] scalarValues, Expression... arguments) -
create
public static FunctionCall create(java.lang.String functionName, java.util.List<Expression> arguments) -
create
-
logicalOr
-
logicalOr
-
logicalAnd
-
logicalAnd
-
logicalNot
-
equal
-
notEqual
-
lessThan
-
lessEqualThan
-
greaterThan
-
greaterEqualThan
-
add
-
add
-
subtract
-
multiply
-
multiply
-
divide
-
numericUnaryPlus
-
numericUnaryMinus
-