public class IPv4AddressParseExprMacro extends Object implements ExprMacroTable.ExprMacro
Implements an expression that parses a string or long into an IPv4 address stored (as an unsigned int) in a long. Expression signatures: - long ipv4_parse(string) - long ipv4_parse(long) String arguments should be formatted as a dotted-decimal. Long arguments that can be represented as an IPv4 address are passed through. Invalid arguments return null.
| Constructor and Description |
|---|
IPv4AddressParseExprMacro() |
| Modifier and Type | Method and Description |
|---|---|
Expr |
apply(List<Expr> args) |
String |
name()
Name of the function
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessingFailed, validationFailed, validationFailed, validationHelperCheckAnyOfArgumentCount, validationHelperCheckArgIsLiteral, validationHelperCheckArgumentCount, validationHelperCheckArgumentCount, validationHelperCheckArgumentRange, validationHelperCheckLambaArgumentCount, validationHelperCheckMinArgumentCount, validationHelperCheckMinArgumentCountpublic static final String FN_NAME
public String name()
NamedFunctionname in interface NamedFunctionpublic Expr apply(List<Expr> args)
apply in interface ExprMacroTable.ExprMacroCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.