Uses of Annotation Type
net.sf.jasperreports.functions.annotations.Function
Packages that use Function
-
Uses of Function in net.sf.jasperreports.functions.standard
Methods in net.sf.jasperreports.functions.standard with annotations of type FunctionModifier and TypeMethodDescriptionstatic NumberReturns the absolute value of a number.static BooleanReturns true if all arguments are considered true, false otherwise.static StringReturns a text representation of a number, in a specified base radix.static DoubleReturns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integerstatic StringReturns a single text character, given a character code.static StringReturns a new text string without non-printable characters.static IntegerReturns the numeric code (0-255) for the first character in a string.static StringTextFunctions.CONCATENATE(String... strings) Combines a list of strings into a single one.Creates a date object using the specified information on day, month and year.DateTimeFunctions.DATEFORMAT(Date dateObj, String formatPattern) Format the specified date object using the chosen format pattern.Allows to create a JasperReports DateRange instance starting from either a String expression or a Date instance.Gives the corresponding numeric value (long milliseconds) for a specified date object.Returns the day of a given date.Returns the number of days between two dates.DateTimeFunctions.DAYSINMONTH(Object dateObj) Returns the number of days in a month.DateTimeFunctions.DAYSINYEAR(Object dateObj) Returns the number of days in a year.static DoubleTextFunctions.DOUBLE_VALUE(String textNumber) Returns a Double number representing the given text string.Returns a date a number of months away.static BooleanChecks if the two specified objects are equal.static BooleanReturns TRUE if the two text specified are exactly the same (case sensitive compare).static LongReturns the factorial of a number.static BooleanLogicalFunctions.FALSE()Returns the logical value FALSE.static IntegerReturns the character position of a string inside another text.Returns the text representing number with the specified decimal places.static FloatTextFunctions.FLOAT_VALUE(String textNumber) Returns a Float number representing the given text string.static DoubleReturns the largest (closest to positive infinity) double value that is less than or equal to the argument and is equal to a mathematical integer.Returns the hour (0-23) of the day for a given date.static ObjectReturns one of two values, depending on a test condition.static IntegerTextFunctions.INTEGER_VALUE(String textNumber) Returns an Integer number representing the given text string.static BooleanChecks if a number is even.DateTimeFunctions.ISLEAPYEAR(Object dateObj) Checks if the given date occurs in a leap year.static BooleanChecks if a number is odd.static StringReturns the specified number of characters (1 by default) from the left side of the input text.static IntegerReturns the length of the specified text string.static LongTextFunctions.LONG_VALUE(String textNumber) Returns a Long number representing the given text string.static StringPerforms the lower case conversion of the specified text string.static StringClear a string, removing leading whitespaces.static NumberReturns the maximum of a list of numeric values.static StringReturns the text from the middle of a text string.static NumberReturns the minimum of a list of numeric values.Returns the minute (0-59) of the hour for a given date.Returns the month of a given date.Returns the number of months between two dates.DateTimeFunctions.NETWORKDAYS(Object startDate, Object endDate) Returns the number of working days between two dates (inclusive).static BooleanReturns the negation of the specified boolean expression.DateTimeFunctions.NOW()Returns the current instant as date object.static BooleanReturns true if any of the arguments is considered true, false otherwise.ReportFunctions.ORIGINAL_DATA_SOURCE()static NumberReturns the product of a list of numbers.static StringCapitalizes each words of the specified text.static DoubleMathFunctions.RAND()Returns a random number between 0.0 and 1.0.static IntegerMathFunctions.RANDBETWEEN(Integer bottomRange, Integer topRange) Returns an Integer random number between bottom and top range (both inclusive).static StringReplaces parts of a text string with a different one.static StringReplicates an input text string for a specified number of times.byte[]ReportFunctions.RESOURCE_DATA(String location) static StringReturns the specified number of characters (1 by default) from the right side of the input text.static BigDecimalMathFunctions.ROUND_CEILING(Number number, int scale) Returns a BigDecimal number rounded towards positive infinity.static BigDecimalMathFunctions.ROUND_DOWN(Number number, int scale) Returns a BigDecimal number rounded towards zero.static BigDecimalMathFunctions.ROUND_FLOOR(Number number, int scale) Returns a BigDecimal number rounded towards negative infinity.static BigDecimalMathFunctions.ROUND_HALF_DOWN(Number number, int scale) Returns a BigDecimal number rounded towards its nearest neighbor.static BigDecimalMathFunctions.ROUND_HALF_EVEN(Number number, int scale) Returns a BigDecimal number rounded towards its nearest neighbor.static BigDecimalMathFunctions.ROUND_HALF_UP(Number number, int scale) Returns a BigDecimal number rounded towards its nearest neighbor.static BigDecimalReturns a BigDecimal number rounded away from zero.static StringClear a string, removing trailing whitespaces.static IntegerReturns the position of a string of text in another string.Returns the second (0-59) of the minute for a given date.static IntegerReturns the sign of a number.static NumberReturns the positive square root of a number.ReportFunctions.SUB_DATA_SOURCE()ReportFunctions.SUB_DATA_SOURCE(String expression) static StringTextFunctions.SUBSTITUTE(String originalText, String oldText, String newText) Substitutes new text for old text in a text string.static NumberReturns the sum of a list of numbers.static StringReturns the text string if the value is a string, otherwise an empty string is returned.Converts a number into a text string according to a specified format.Returns a text string representing a time value (hours, seconds and minutes).DateTimeFunctions.TODAY()Returns the current date as date object.static StringClear a string,removing leading and trailing whitespaces.static BooleanLogicalFunctions.TRUE()Returns the logical value TRUE.static StringPerforms the upper case conversion of the specified text string.Returns the day of the week for a given date.Returns the week number of a given date.Returns the number of weeks between two dates.DateTimeFunctions.WEEKSINYEAR(Object dateObj) Returns the number of weeks in a year.Returns a date a number of workdays away.Returns the year of a given date.Returns the number of years between two dates.