APIdia Launch Partner
Top Fields Constructors Methods
io.github.spannm.jackcess.impl.expr

public Class StringValue

extends BaseValue
Class Inheritance
Imports
io.github.spannm.jackcess.expr.EvalException, .LocaleContext, .Value, java.math.BigDecimal, java.text.DecimalFormatSymbols

Field Summary

Modifier and TypeField and Description
private static final Object
private Object
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
get()

Implements io.github.spannm.jackcess.expr.Value.get.

Returns the raw primitive value.

public BigDecimal
public boolean
public Value
getAsDateTimeValue(LocaleContext ctx)

Overrides io.github.spannm.jackcess.impl.expr.BaseValue.getAsDateTimeValue.

Implements io.github.spannm.jackcess.expr.Value.getAsDateTimeValue.

Since date/time values have different types, it may be more convenient to get the date/time primitive value with the appropriate type information.

public Double
getAsDouble(LocaleContext ctx)

Overrides io.github.spannm.jackcess.impl.expr.BaseValue.getAsDouble.

Implements io.github.spannm.jackcess.expr.Value.getAsDouble.

Returns this primitive value converted (rounded) to a double.

public Integer
getAsLongInt(LocaleContext ctx)

Overrides io.github.spannm.jackcess.impl.expr.BaseValue.getAsLongInt.

Implements io.github.spannm.jackcess.expr.Value.getAsLongInt.

Returns this primitive value converted (rounded) to an int.

public String
protected BigDecimal
public Value.Type
getType()

Implements io.github.spannm.jackcess.expr.Value.getType.

Returns the type of this value.

private BigDecimal
parseIntegerString(String tmpVal, int radix)

private static String
Inherited from io.github.spannm.jackcess.impl.expr.BaseValue:
getAsLocalDateTimeinvalidConversionisNullroundToLongInttoString

Field Detail

NOT_A_NUMBERback to summary
private static final Object NOT_A_NUMBER
numback to summary
private Object num
valback to summary
private final String val

Constructor Detail

StringValueback to summary
public StringValue(String _val)

Method Detail

getback to summary
public Object get()

Implements io.github.spannm.jackcess.expr.Value.get.

Doc from io.github.spannm.jackcess.expr.Value.get.

Returns the raw primitive value.

Annotations
@Override
getAsBigDecimalback to summary
public BigDecimal getAsBigDecimal(LocaleContext ctx)

Overrides io.github.spannm.jackcess.impl.expr.BaseValue.getAsBigDecimal.

Implements io.github.spannm.jackcess.expr.Value.getAsBigDecimal.

Doc from io.github.spannm.jackcess.expr.Value.getAsBigDecimal.

Returns this primitive value converted to a BigDecimal.

Annotations
@Override
getAsBooleanback to summary
public boolean getAsBoolean(LocaleContext ctx)

Overrides io.github.spannm.jackcess.impl.expr.BaseValue.getAsBoolean.

Implements io.github.spannm.jackcess.expr.Value.getAsBoolean.

Doc from io.github.spannm.jackcess.expr.Value.getAsBoolean.

Returns this primitive value converted to a boolean.

Annotations
@Override
getAsDateTimeValueback to summary
public Value getAsDateTimeValue(LocaleContext ctx)

Overrides io.github.spannm.jackcess.impl.expr.BaseValue.getAsDateTimeValue.

Implements io.github.spannm.jackcess.expr.Value.getAsDateTimeValue.

Doc from io.github.spannm.jackcess.expr.Value.getAsDateTimeValue.

Since date/time values have different types, it may be more convenient to get the date/time primitive value with the appropriate type information.

Annotations
@Override
getAsDoubleback to summary
public Double getAsDouble(LocaleContext ctx)

Overrides io.github.spannm.jackcess.impl.expr.BaseValue.getAsDouble.

Implements io.github.spannm.jackcess.expr.Value.getAsDouble.

Doc from io.github.spannm.jackcess.expr.Value.getAsDouble.

Returns this primitive value converted (rounded) to a double.

Annotations
@Override
getAsLongIntback to summary
public Integer getAsLongInt(LocaleContext ctx)

Overrides io.github.spannm.jackcess.impl.expr.BaseValue.getAsLongInt.

Implements io.github.spannm.jackcess.expr.Value.getAsLongInt.

Doc from io.github.spannm.jackcess.expr.Value.getAsLongInt.

Returns this primitive value converted (rounded) to an int.

Annotations
@Override
getAsStringback to summary
public String getAsString(LocaleContext ctx)

Overrides io.github.spannm.jackcess.impl.expr.BaseValue.getAsString.

Implements io.github.spannm.jackcess.expr.Value.getAsString.

Doc from io.github.spannm.jackcess.expr.Value.getAsString.

Returns this primitive value converted to a String.

Annotations
@Override
getNumberback to summary
protected BigDecimal getNumber(LocaleContext ctx)
getTypeback to summary
public Value.Type getType()

Implements io.github.spannm.jackcess.expr.Value.getType.

Doc from io.github.spannm.jackcess.expr.Value.getType.

Returns the type of this value.

Annotations
@Override
parseIntegerStringback to summary
private BigDecimal parseIntegerString(String tmpVal, int radix)
toCanonicalNumberFormatback to summary
private static String toCanonicalNumberFormat(LocaleContext ctx, String tmpVal)