org.odata4j.expression
Class Expression

java.lang.Object
  extended by org.odata4j.expression.Expression

public class Expression
extends Object


Method Summary
static AddExpression add(CommonExpression lhs, CommonExpression rhs)
           
static AggregateBoolFunction aggregate(ExpressionParser.AggregateFunction function, CommonExpression source, String var, BoolCommonExpression predicate)
           
static AggregateAllFunction all(CommonExpression source, String var, BoolCommonExpression predicate)
           
static AndExpression and(BoolCommonExpression lhs, BoolCommonExpression rhs)
           
static AggregateAnyFunction any(CommonExpression source)
           
static AggregateAnyFunction any(CommonExpression source, String var, BoolCommonExpression predicate)
           
static String asFilterString(CommonExpression expr)
           
static String asPrintString(CommonExpression expr)
           
static BinaryLiteral binary(byte[] value)
           
static BooleanLiteral boolean_(boolean value)
           
static BoolParenExpression boolParen(CommonExpression expression)
           
static ByteLiteral byte_(UnsignedByte value)
           
static CastExpression cast(CommonExpression expression, String type)
           
static CastExpression cast(String type)
           
static CeilingMethodCallExpression ceiling(CommonExpression target)
           
static ConcatMethodCallExpression concat(CommonExpression lhs, CommonExpression rhs)
           
static DateTimeLiteral dateTime(LocalDateTime value)
           
static DateTimeOffsetLiteral dateTimeOffset(DateTime value)
           
static DayMethodCallExpression day(CommonExpression target)
           
static DecimalLiteral decimal(BigDecimal value)
           
static DivExpression div(CommonExpression lhs, CommonExpression rhs)
           
static DoubleLiteral double_(double value)
           
static EndsWithMethodCallExpression endsWith(CommonExpression target, CommonExpression value)
           
static EqExpression eq(CommonExpression lhs, CommonExpression rhs)
           
static FloorMethodCallExpression floor(CommonExpression target)
           
static GeExpression ge(CommonExpression lhs, CommonExpression rhs)
           
static GtExpression gt(CommonExpression lhs, CommonExpression rhs)
           
static GuidLiteral guid(Guid value)
           
static HourMethodCallExpression hour(CommonExpression target)
           
static IndexOfMethodCallExpression indexOf(CommonExpression target, CommonExpression value)
           
static Int64Literal int64(long value)
           
static IntegralLiteral integral(int value)
           
static IsofExpression isof(CommonExpression expression, String type)
           
static IsofExpression isof(String type)
           
static LeExpression le(CommonExpression lhs, CommonExpression rhs)
           
static LengthMethodCallExpression length(CommonExpression target)
           
static LiteralExpression literal(EdmSimpleType<?> edmType, Object value)
           
static LiteralExpression literal(Object value)
           
static Object literalValue(LiteralExpression expression)
           
static LtExpression lt(CommonExpression lhs, CommonExpression rhs)
           
static MinuteMethodCallExpression minute(CommonExpression target)
           
static ModExpression mod(CommonExpression lhs, CommonExpression rhs)
           
static MonthMethodCallExpression month(CommonExpression target)
           
static MulExpression mul(CommonExpression lhs, CommonExpression rhs)
           
static NeExpression ne(CommonExpression lhs, CommonExpression rhs)
           
static NegateExpression negate(CommonExpression expression)
           
static NotExpression not(CommonExpression expression)
           
static NullLiteral null_()
           
static OrExpression or(BoolCommonExpression lhs, BoolCommonExpression rhs)
           
static OrderByExpression orderBy(CommonExpression expression, OrderByExpression.Direction direction)
           
static ParenExpression paren(CommonExpression expression)
           
static CommonExpression parse(String value)
           
static ReplaceMethodCallExpression replace(CommonExpression target, CommonExpression find, CommonExpression replace)
           
static RoundMethodCallExpression round(CommonExpression target)
           
static SByteLiteral sbyte_(byte value)
           
static SecondMethodCallExpression second(CommonExpression target)
           
static EntitySimpleProperty simpleProperty(String propertyName)
           
static SingleLiteral single(float value)
           
static StartsWithMethodCallExpression startsWith(CommonExpression target, CommonExpression value)
           
static StringLiteral string(String value)
           
static SubExpression sub(CommonExpression lhs, CommonExpression rhs)
           
static SubstringMethodCallExpression substring(CommonExpression target, CommonExpression start)
           
static SubstringMethodCallExpression substring(CommonExpression target, CommonExpression start, CommonExpression length)
           
static SubstringOfMethodCallExpression substringOf(CommonExpression value)
           
static SubstringOfMethodCallExpression substringOf(CommonExpression value, CommonExpression target)
           
static TimeLiteral time(LocalTime value)
           
static ToLowerMethodCallExpression toLower(CommonExpression target)
           
static ToUpperMethodCallExpression toUpper(CommonExpression target)
           
static TrimMethodCallExpression trim(CommonExpression target)
           
static YearMethodCallExpression year(CommonExpression target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public static AddExpression add(CommonExpression lhs,
                                CommonExpression rhs)

aggregate

public static AggregateBoolFunction aggregate(ExpressionParser.AggregateFunction function,
                                              CommonExpression source,
                                              String var,
                                              BoolCommonExpression predicate)

all

public static AggregateAllFunction all(CommonExpression source,
                                       String var,
                                       BoolCommonExpression predicate)

and

public static AndExpression and(BoolCommonExpression lhs,
                                BoolCommonExpression rhs)

any

public static AggregateAnyFunction any(CommonExpression source)

any

public static AggregateAnyFunction any(CommonExpression source,
                                       String var,
                                       BoolCommonExpression predicate)

asFilterString

public static String asFilterString(CommonExpression expr)

asPrintString

public static String asPrintString(CommonExpression expr)

binary

public static BinaryLiteral binary(byte[] value)

boolean_

public static BooleanLiteral boolean_(boolean value)

boolParen

public static BoolParenExpression boolParen(CommonExpression expression)

byte_

public static ByteLiteral byte_(UnsignedByte value)

cast

public static CastExpression cast(CommonExpression expression,
                                  String type)

cast

public static CastExpression cast(String type)

ceiling

public static CeilingMethodCallExpression ceiling(CommonExpression target)

concat

public static ConcatMethodCallExpression concat(CommonExpression lhs,
                                                CommonExpression rhs)

dateTime

public static DateTimeLiteral dateTime(LocalDateTime value)

dateTimeOffset

public static DateTimeOffsetLiteral dateTimeOffset(DateTime value)

day

public static DayMethodCallExpression day(CommonExpression target)

decimal

public static DecimalLiteral decimal(BigDecimal value)

div

public static DivExpression div(CommonExpression lhs,
                                CommonExpression rhs)

double_

public static DoubleLiteral double_(double value)

endsWith

public static EndsWithMethodCallExpression endsWith(CommonExpression target,
                                                    CommonExpression value)

eq

public static EqExpression eq(CommonExpression lhs,
                              CommonExpression rhs)

floor

public static FloorMethodCallExpression floor(CommonExpression target)

ge

public static GeExpression ge(CommonExpression lhs,
                              CommonExpression rhs)

gt

public static GtExpression gt(CommonExpression lhs,
                              CommonExpression rhs)

guid

public static GuidLiteral guid(Guid value)

hour

public static HourMethodCallExpression hour(CommonExpression target)

indexOf

public static IndexOfMethodCallExpression indexOf(CommonExpression target,
                                                  CommonExpression value)

int64

public static Int64Literal int64(long value)

integral

public static IntegralLiteral integral(int value)

isof

public static IsofExpression isof(CommonExpression expression,
                                  String type)

isof

public static IsofExpression isof(String type)

le

public static LeExpression le(CommonExpression lhs,
                              CommonExpression rhs)

length

public static LengthMethodCallExpression length(CommonExpression target)

literal

public static LiteralExpression literal(EdmSimpleType<?> edmType,
                                        Object value)

literal

public static LiteralExpression literal(Object value)

literalValue

public static Object literalValue(LiteralExpression expression)

lt

public static LtExpression lt(CommonExpression lhs,
                              CommonExpression rhs)

minute

public static MinuteMethodCallExpression minute(CommonExpression target)

mod

public static ModExpression mod(CommonExpression lhs,
                                CommonExpression rhs)

month

public static MonthMethodCallExpression month(CommonExpression target)

mul

public static MulExpression mul(CommonExpression lhs,
                                CommonExpression rhs)

ne

public static NeExpression ne(CommonExpression lhs,
                              CommonExpression rhs)

negate

public static NegateExpression negate(CommonExpression expression)

not

public static NotExpression not(CommonExpression expression)

null_

public static NullLiteral null_()

or

public static OrExpression or(BoolCommonExpression lhs,
                              BoolCommonExpression rhs)

orderBy

public static OrderByExpression orderBy(CommonExpression expression,
                                        OrderByExpression.Direction direction)

paren

public static ParenExpression paren(CommonExpression expression)

parse

public static CommonExpression parse(String value)

replace

public static ReplaceMethodCallExpression replace(CommonExpression target,
                                                  CommonExpression find,
                                                  CommonExpression replace)

round

public static RoundMethodCallExpression round(CommonExpression target)

sbyte_

public static SByteLiteral sbyte_(byte value)

second

public static SecondMethodCallExpression second(CommonExpression target)

simpleProperty

public static EntitySimpleProperty simpleProperty(String propertyName)

single

public static SingleLiteral single(float value)

startsWith

public static StartsWithMethodCallExpression startsWith(CommonExpression target,
                                                        CommonExpression value)

string

public static StringLiteral string(String value)

sub

public static SubExpression sub(CommonExpression lhs,
                                CommonExpression rhs)

substring

public static SubstringMethodCallExpression substring(CommonExpression target,
                                                      CommonExpression start)

substring

public static SubstringMethodCallExpression substring(CommonExpression target,
                                                      CommonExpression start,
                                                      CommonExpression length)

substringOf

public static SubstringOfMethodCallExpression substringOf(CommonExpression value)

substringOf

public static SubstringOfMethodCallExpression substringOf(CommonExpression value,
                                                          CommonExpression target)

time

public static TimeLiteral time(LocalTime value)

toLower

public static ToLowerMethodCallExpression toLower(CommonExpression target)

toUpper

public static ToUpperMethodCallExpression toUpper(CommonExpression target)

trim

public static TrimMethodCallExpression trim(CommonExpression target)

year

public static YearMethodCallExpression year(CommonExpression target)


http://odata4j.org