Package org.harctoolbox.irp
Class IrpUtils
java.lang.Object
org.harctoolbox.irp.IrpUtils
This class is a collection of useful utilities as static functions and constants.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
showTreeViewer
(org.antlr.v4.gui.TreeViewer tv, String title) Show the TreeViewer given as argument.static String
Deprecated.Use IrCoreUtils.toCName insteadstatic long
variableGet
(Map<String, Long> map, String name) static String
variableHeader
(HashMap<String, Long> params) Produces a header in the spirit of Makehex.
-
Field Details
-
EXIT_SUCCESS
public static final int EXIT_SUCCESS- See Also:
-
EXIT_USAGE_ERROR
public static final int EXIT_USAGE_ERROR- See Also:
-
EXIT_SEMANTIC_USAGE_ERROR
public static final int EXIT_SEMANTIC_USAGE_ERROR- See Also:
-
EXIT_FATAL_PROGRAM_FAILURE
public static final int EXIT_FATAL_PROGRAM_FAILURE- See Also:
-
EXIT_INTERNAL_FAILURE
public static final int EXIT_INTERNAL_FAILURE- See Also:
-
EXIT_CONFIG_READ_ERROR
public static final int EXIT_CONFIG_READ_ERROR- See Also:
-
EXIT_CONFIG_WRITE_ERROR
public static final int EXIT_CONFIG_WRITE_ERROR- See Also:
-
EXIT_IO_ERROR
public static final int EXIT_IO_ERROR- See Also:
-
EXIT_XML_ERROR
public static final int EXIT_XML_ERROR- See Also:
-
EXIT_DYNAMICLINK_ERROR
public static final int EXIT_DYNAMICLINK_ERROR- See Also:
-
EXIT_THIS_CANNOT_HAPPEN
public static final int EXIT_THIS_CANNOT_HAPPEN- See Also:
-
EXIT_INTERRUPTED
public static final int EXIT_INTERRUPTED- See Also:
-
EXIT_RESTART
public static final int EXIT_RESTART- See Also:
-
JP1_WIKI_URL
- See Also:
-
IRP_NOTATION_URL
- See Also:
-
DECODEIR_URL
- See Also:
-
C_IDENTIFIER_REGEXP
- See Also:
-
-
Method Details
-
variableGet
-
variableHeader
Produces a header in the spirit of Makehex. Follows the convention of variable ordering: D, (S), F, (T), then the rest alphabetically ordered,- Parameters:
params
- HashMap<String, Long> of input parameters.- Returns:
- Nicely formatted header (String)
-
toCIdentifier
Deprecated.Use IrCoreUtils.toCName insteadMakes a C identifier of the argument.- Parameters:
s
-- Returns:
- its argument made C friendly
-
showTreeViewer
Show the TreeViewer given as argument. Requires a graphic environment.- Parameters:
tv
-title
-
-