public class ExcelFunctions extends Object
| Constructor and Description |
|---|
ExcelFunctions() |
| Modifier and Type | Method and Description |
|---|---|
static String |
_char(EvaluationContext ctx,
Object number)
Returns the character specified by a number
|
static boolean |
_false()
Returns the logical value FALSE
|
static Object |
_if(EvaluationContext ctx,
Object logicalTest,
Object valueIfTrue,
Object valueIfFalse)
Returns one value if the condition evaluates to TRUE, and another value if it evaluates to FALSE
|
static int |
_int(EvaluationContext ctx,
Object number)
Rounds a number down to the nearest integer
|
static boolean |
_true()
Returns the logical value TRUE
|
static BigDecimal |
abs(EvaluationContext ctx,
Object number)
Returns the absolute value of a number
|
static boolean |
and(EvaluationContext ctx,
Object... args)
Returns TRUE if and only if all its arguments evaluate to TRUE
|
static BigDecimal |
average(EvaluationContext ctx,
Object... args)
Returns the average (arithmetic mean) of the arguments
|
static String |
clean(EvaluationContext ctx,
Object text)
Removes all non-printable characters from a text string
|
static int |
code(EvaluationContext ctx,
Object text)
Returns a numeric code for the first character in a text string
|
static String |
concatenate(EvaluationContext ctx,
Object... args)
Joins text strings into one text string
|
static org.threeten.bp.LocalDate |
date(EvaluationContext ctx,
Object year,
Object month,
Object day)
Defines a date value
|
static int |
datedif(EvaluationContext ctx,
Object startDate,
Object endDate,
Object unit)
Calculates the number of days, months, or years between two dates.
|
static org.threeten.bp.LocalDate |
datevalue(EvaluationContext ctx,
Object text)
Converts date stored in text to an actual date
|
static int |
day(EvaluationContext ctx,
Object date)
Returns only the day of the month of a date (1 to 31)
|
static int |
days(EvaluationContext ctx,
Object endDate,
Object startDate)
Returns the number of days between two dates.
|
static org.threeten.bp.temporal.Temporal |
edate(EvaluationContext ctx,
Object date,
Object months)
Moves a date by the given number of months
|
static BigDecimal |
exp(EvaluationContext ctx,
Object number)
Returns e raised to the power of number
|
static String |
fixed(EvaluationContext ctx,
Object number,
Object decimals,
Object noCommas)
Formats the given number in decimal format using a period and commas
|
static int |
hour(EvaluationContext ctx,
Object datetime)
Returns only the hour of a datetime (0 to 23)
|
static String |
left(EvaluationContext ctx,
Object text,
Object numChars)
Returns the first characters in a text string
|
static int |
len(EvaluationContext ctx,
Object text)
Returns the number of characters in a text string
|
static String |
lower(EvaluationContext ctx,
Object text)
Converts a text string to lowercase
|
static BigDecimal |
max(EvaluationContext ctx,
Object... args)
Returns the maximum of all arguments
|
static BigDecimal |
min(EvaluationContext ctx,
Object... args)
Returns the minimum of all arguments
|
static int |
minute(EvaluationContext ctx,
Object datetime)
Returns only the minute of a datetime (0 to 59)
|
static BigDecimal |
mod(EvaluationContext ctx,
Object number,
Object divisor)
Returns the remainder after number is divided by divisor
|
static int |
month(EvaluationContext ctx,
Object date)
Returns only the month of a date (1 to 12)
|
static org.threeten.bp.ZonedDateTime |
now(EvaluationContext ctx)
Returns the current date and time
|
static boolean |
or(EvaluationContext ctx,
Object... args)
Returns TRUE if any argument is TRUE
|
static BigDecimal |
power(EvaluationContext ctx,
Object number,
Object power)
Returns the result of a number raised to a power
|
static String |
proper(EvaluationContext ctx,
Object text)
Capitalizes the first letter of every word in a text string
|
static BigDecimal |
rand()
Returns an evenly distributed random real number greater than or equal to 0 and less than 1
|
static int |
randbetween(EvaluationContext ctx,
Object bottom,
Object top)
Returns a random integer number between the numbers you specify
|
static String |
rept(EvaluationContext ctx,
Object text,
Object numberTimes)
Repeats text a given number of times
|
static String |
right(EvaluationContext ctx,
Object text,
Object numChars)
Returns the last characters in a text string
|
static BigDecimal |
round(EvaluationContext ctx,
Object number,
Object numDigits)
Rounds a number to a specified number of digits
|
static BigDecimal |
rounddown(EvaluationContext ctx,
Object number,
Object numDigits)
Rounds a number down, toward zero
|
static BigDecimal |
roundup(EvaluationContext ctx,
Object number,
Object numDigits)
Rounds a number up, away from zero
|
static int |
second(EvaluationContext ctx,
Object datetime)
Returns only the second of a datetime (0 to 59)
|
static String |
substitute(EvaluationContext ctx,
Object text,
Object oldText,
Object newText,
Object instanceNum)
Substitutes new_text for old_text in a text string
|
static BigDecimal |
sum(EvaluationContext ctx,
Object... args)
Returns the sum of all arguments
|
static org.threeten.bp.OffsetTime |
time(EvaluationContext ctx,
Object hours,
Object minutes,
Object seconds)
Defines a time value
|
static org.threeten.bp.OffsetTime |
timevalue(EvaluationContext ctx,
Object text)
Converts time stored in text to an actual time
|
static org.threeten.bp.LocalDate |
today(EvaluationContext ctx)
Returns the current date
|
static int |
trunc(EvaluationContext ctx,
Object number)
Truncates a number to an integer by removing the fractional part of the number
|
static String |
unichar(EvaluationContext ctx,
Object number)
Returns the unicode character specified by a number
|
static int |
unicode(EvaluationContext ctx,
Object text)
Returns a numeric code for the first character in a text string
|
static String |
upper(EvaluationContext ctx,
Object text)
Converts a text string to uppercase
|
static int |
weekday(EvaluationContext ctx,
Object date)
Returns the day of the week of a date (1 for Sunday to 7 for Saturday)
|
static int |
year(EvaluationContext ctx,
Object date)
Returns only the year of a date
|
public static String _char(EvaluationContext ctx, Object number)
public static String clean(EvaluationContext ctx, Object text)
public static int code(EvaluationContext ctx, Object text)
public static String concatenate(EvaluationContext ctx, Object... args)
public static String fixed(EvaluationContext ctx, Object number, Object decimals, Object noCommas)
public static String left(EvaluationContext ctx, Object text, Object numChars)
public static int len(EvaluationContext ctx, Object text)
public static String lower(EvaluationContext ctx, Object text)
public static String proper(EvaluationContext ctx, Object text)
public static String rept(EvaluationContext ctx, Object text, Object numberTimes)
public static String right(EvaluationContext ctx, Object text, Object numChars)
public static String substitute(EvaluationContext ctx, Object text, Object oldText, Object newText, Object instanceNum)
public static String unichar(EvaluationContext ctx, Object number)
public static int unicode(EvaluationContext ctx, Object text)
public static String upper(EvaluationContext ctx, Object text)
public static org.threeten.bp.LocalDate date(EvaluationContext ctx, Object year, Object month, Object day)
public static int datedif(EvaluationContext ctx, Object startDate, Object endDate, Object unit)
public static org.threeten.bp.LocalDate datevalue(EvaluationContext ctx, Object text)
public static int day(EvaluationContext ctx, Object date)
public static int days(EvaluationContext ctx, Object endDate, Object startDate)
public static org.threeten.bp.temporal.Temporal edate(EvaluationContext ctx, Object date, Object months)
public static int hour(EvaluationContext ctx, Object datetime)
public static int minute(EvaluationContext ctx, Object datetime)
public static int month(EvaluationContext ctx, Object date)
public static org.threeten.bp.ZonedDateTime now(EvaluationContext ctx)
public static int second(EvaluationContext ctx, Object datetime)
public static org.threeten.bp.OffsetTime time(EvaluationContext ctx, Object hours, Object minutes, Object seconds)
public static org.threeten.bp.OffsetTime timevalue(EvaluationContext ctx, Object text)
public static org.threeten.bp.LocalDate today(EvaluationContext ctx)
public static int weekday(EvaluationContext ctx, Object date)
public static int year(EvaluationContext ctx, Object date)
public static BigDecimal abs(EvaluationContext ctx, Object number)
public static BigDecimal average(EvaluationContext ctx, Object... args)
public static BigDecimal exp(EvaluationContext ctx, Object number)
public static int _int(EvaluationContext ctx, Object number)
public static BigDecimal max(EvaluationContext ctx, Object... args)
public static BigDecimal min(EvaluationContext ctx, Object... args)
public static BigDecimal mod(EvaluationContext ctx, Object number, Object divisor)
public static BigDecimal power(EvaluationContext ctx, Object number, Object power)
public static BigDecimal rand()
public static int randbetween(EvaluationContext ctx, Object bottom, Object top)
public static BigDecimal round(EvaluationContext ctx, Object number, Object numDigits)
public static BigDecimal rounddown(EvaluationContext ctx, Object number, Object numDigits)
public static BigDecimal roundup(EvaluationContext ctx, Object number, Object numDigits)
public static BigDecimal sum(EvaluationContext ctx, Object... args)
public static int trunc(EvaluationContext ctx, Object number)
public static boolean and(EvaluationContext ctx, Object... args)
public static boolean _false()
public static Object _if(EvaluationContext ctx, Object logicalTest, Object valueIfTrue, Object valueIfFalse)
public static boolean or(EvaluationContext ctx, Object... args)
public static boolean _true()
Copyright © 2018. All rights reserved.