public final class GlobalFunctions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static GlobalFunctions |
instance |
| Modifier | Constructor and Description |
|---|---|
private |
GlobalFunctions() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertToGeneralIdentifier(java.lang.String identifier)
converts an array-elements identifier into its generalized name i.e.:
"PF_USR_CHAIN_2_RULE_4_COMMENT" -> "PF_USR_CHAIN_%_RULE_%_COMMENT".
|
private static RegExRefPart |
createRERP(java.lang.String string)
totally senseless function for PMD to be quiet.
|
private static RegExStringPart |
createRESP(java.lang.String string)
yet another totally senseless function for PMD to be quiet.
|
static RegEx |
generateRegEx(java.lang.String string) |
private static GlobalFunctions |
getInstance() |
static GlobalFunctions |
getTheInstance() |
static java.lang.String |
posixCharacterReplacement(java.lang.String expression)
This method replaces the POSIX character classes with the appropriated ASCII code.
|
AbstractVariableDefinition |
searchVariableDefinition(RouterSoftware rs,
java.lang.String identifier)
gets the VariableDefinition of the searched Identifier.
|
private static void |
setInstance(GlobalFunctions instance) |
private static GlobalFunctions instance
public static GlobalFunctions getTheInstance()
public static RegEx generateRegEx(java.lang.String string)
string - input Stringpublic AbstractVariableDefinition searchVariableDefinition(RouterSoftware rs, java.lang.String identifier) throws ParserException
rs - The RouterSoftware to use.identifier - identifierParserException - ParserException if VariableDefinition is not foundpublic java.lang.String convertToGeneralIdentifier(java.lang.String identifier)
identifier - identifier for the element to be parsedpublic static java.lang.String posixCharacterReplacement(java.lang.String expression)
expression - the expressionprivate static RegExRefPart createRERP(java.lang.String string)
string - stringprivate static RegExStringPart createRESP(java.lang.String string)
string - stringprivate static GlobalFunctions getInstance()
private static void setInstance(GlobalFunctions instance)
instance - the instance to set