- ABSOLUTE - org.refcodes.runtime.ConfigLocator
-
None of the as of the folders as of the
ConfigLocator
enumeration
are considered.
- ALIAS_GET - Static variable in class org.refcodes.runtime.ReflectionUtility
-
- ALIAS_HAS - Static variable in class org.refcodes.runtime.ReflectionUtility
-
- ALIAS_IS - Static variable in class org.refcodes.runtime.ReflectionUtility
-
- ALIAS_SET - Static variable in class org.refcodes.runtime.ReflectionUtility
-
- ALIAS_TOSTRING - Static variable in class org.refcodes.runtime.ReflectionUtility
-
- ALL - org.refcodes.runtime.ConfigLocator
-
- APPLICATION - org.refcodes.runtime.SystemContext
-
Specifies an application specific granularity.
- APPLICATION_ALL - org.refcodes.runtime.ConfigLocator
-
Representation of all the APPLICATION_*
folders.
- APPLICATION_DIR - org.refcodes.runtime.ConfigLocator
-
Representation of the folder in which the application resides (e.g. the
`JAR` file).
- APPLICATION_DIR_ALL - org.refcodes.runtime.ConfigLocator
-
Representation of all the
APPLICATION_DIR_*
folders as of
the
ConfigLocator
enumeration.
- APPLICATION_DIR_CONFIG - org.refcodes.runtime.ConfigLocator
-
Representation of the config
folder relative to the folder
in which the application resides (e.g. the `JAR` file).
- APPLICATION_DIR_DOT_CONFIG - org.refcodes.runtime.ConfigLocator
-
Representation of the .config
folder relative to the folder
in which the application resides (e.g. the `JAR` file).
- APPLICATION_DIR_DOT_ETC - org.refcodes.runtime.ConfigLocator
-
Representation of the .etc
folder relative to the folder in
which the application resides (e.g. the `JAR` file).
- APPLICATION_DIR_DOT_SETTINGS - org.refcodes.runtime.ConfigLocator
-
Representation of the .settings
folder relative to the
folder in which the application resides (e.g. the `JAR` file).
- APPLICATION_DIR_ETC - org.refcodes.runtime.ConfigLocator
-
Representation of the etc
folder relative to the folder in
which the application resides (e.g. the `JAR` file).
- APPLICATION_DIR_SETTINGS - org.refcodes.runtime.ConfigLocator
-
Representation of the settings
folder relative to the folder
in which the application resides (e.g. the `JAR` file).
- APPLICATION_PARENT_ALL - org.refcodes.runtime.ConfigLocator
-
Representation of all the
APPLICATION_PARRENT_*
folders as
of the
ConfigLocator
enumeration.
- APPLICATION_PARENT_CONFIG - org.refcodes.runtime.ConfigLocator
-
Representation of the config
folder in the parent directory
of the folder in which the application resides (e.g. the `JAR` file).
- APPLICATION_PARENT_DOT_CONFIG - org.refcodes.runtime.ConfigLocator
-
Representation of the .config
folder in the parent directory
of the folder in which the application resides (e.g. the `JAR` file).
- APPLICATION_PARENT_DOT_ETC - org.refcodes.runtime.ConfigLocator
-
Representation of the .etc
folder in the parent directory of
the folder in which the application resides (e.g. the `JAR` file).
- APPLICATION_PARENT_DOT_SETTINGS - org.refcodes.runtime.ConfigLocator
-
Representation of the .settings
folder in the parent
directory of the folder in which the application resides (e.g. the `JAR`
file).
- APPLICATION_PARENT_ETC - org.refcodes.runtime.ConfigLocator
-
Representation of the etc
folder in the parent directory of
the folder in which the application resides (e.g. the `JAR` file).
- APPLICATION_PARENT_SETTINGS - org.refcodes.runtime.ConfigLocator
-
Representation of the settings
folder in the parent
directory of the folder in which the application resides (e.g. the `JAR`
file).
- APPLICATION_SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session and an application
specific granularity.
- asNormalized(String, char) - Static method in interface org.refcodes.runtime.PropertyBuilder
-
Normalizes the provided text.
- getCallerStackTraceElement() - Static method in class org.refcodes.runtime.RuntimeUtility
-
- getCallerStackTraceElement(Class<?>) - Static method in class org.refcodes.runtime.RuntimeUtility
-
- getCallerStackTraceElement(Class<?>...) - Static method in class org.refcodes.runtime.RuntimeUtility
-
- getCallerStackTraceElement(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
- getCallerStackTraceElement(StackTraceElement...) - Static method in class org.refcodes.runtime.RuntimeUtility
-
- getCallerStackTraceElement(String) - Static method in class org.refcodes.runtime.RuntimeUtility
-
- getCallerStackTraceElement(String...) - Static method in class org.refcodes.runtime.RuntimeUtility
-
- getCallerType() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the type of the (
Class
) belonging to the direct caller of
this method.
- getCallerType(Class<?>) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the type of the (
Class
) belonging to the caller of the
callee.
- getCallerType(Class<?>...) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Same as
RuntimeUtility.getCallerType(Class)
with the difference that the passed
callees are tried out one after the other until the first caller
determined for a callee is returned.
- getCallerType(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the type of the (
Class
) belonging to the caller of the
callee.
- getCallerType(StackTraceElement...) - Static method in class org.refcodes.runtime.RuntimeUtility
-
- getCallerType(String) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the type of the (
Class
) belonging to the caller of the
callee.
- getCallerType(String...) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Same as
RuntimeUtility.getCallerType(String)
with the difference that the
passed callees are tried out one after the other until the first caller
determined for a callee is returned.
- getComputerName() - Static method in class org.refcodes.runtime.SystemUtility
-
Determines the computer's name.
- getCurrentTerminalHeight() - Static method in enum org.refcodes.runtime.Terminal
-
Determines the current height in characters of the system's terminal in
use.
- getCurrentTerminalWidth() - Static method in enum org.refcodes.runtime.Terminal
-
Determines the current width in characters of the system's terminal in
use.
- getEnvironmentVariable() - Method in interface org.refcodes.runtime.PropertyBuilder
-
Returns the according environment variable after having converted the key
as of KeyAccessor.getKey()
to an environment variable.
- getEnvironmentVariable(String) - Method in interface org.refcodes.runtime.PropertyBuilder
-
Returns the according environment variable after having converted the
provided key to an environment variable.
- getEnvironmentVariable(String) - Method in class org.refcodes.runtime.PropertyBuilderImpl
-
Returns the according environment variable after having converted the
provided key to an environment variable.
- getFolders() - Method in enum org.refcodes.runtime.ConfigLocator
-
Returns the folders to be examined by the according enumeration's
configuration in the order as of evaluation.
- getFolders(File...) - Method in enum org.refcodes.runtime.ConfigLocator
-
Returns the folders to be examined by the according enumeration's
configuration in the order as of evaluation.
- getId() - Method in enum org.refcodes.runtime.Correlation
-
Retrieves the Correlation-TID assigned to the current
Thread
.
- getKey() - Method in class org.refcodes.runtime.PropertyBuilderImpl
- getLineBreak() - Static method in enum org.refcodes.runtime.Terminal
-
- getMainClass() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the main class launching the application.
- getObject() - Method in class org.refcodes.runtime.DumpBuilderImpl
- getPid() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Bad hack to get the JVM's (process TID) PID of the process running your
JVM instance.
- getResult() - Method in class org.refcodes.runtime.ProcessResult
- getSystemProperty() - Method in interface org.refcodes.runtime.PropertyBuilder
-
Returns the according system's property after having converted the key as
of KeyAccessor.getKey()
to a system property.
- getSystemProperty(String) - Method in interface org.refcodes.runtime.PropertyBuilder
-
Returns the according system's property after having converted the
provided key to a system property.
- getSystemProperty(String) - Method in class org.refcodes.runtime.PropertyBuilderImpl
-
Returns the according system's property after having converted the
provided key to a system property.
- getTerminalEncoding() - Static method in enum org.refcodes.runtime.Terminal
-
Determines the encoding of the system (system's console) in use as of
System.out
.
- getTerminalHeight() - Static method in enum org.refcodes.runtime.Terminal
-
Determines the height in characters of the system's terminal in use.
- getTerminalHeight(int) - Static method in enum org.refcodes.runtime.Terminal
-
Determines the height in characters of the system's terminal in use.
- getTerminalWidth() - Static method in enum org.refcodes.runtime.Terminal
-
Determines the width in characters of the system's terminal in use.
- getTerminalWidth(int) - Static method in enum org.refcodes.runtime.Terminal
-
Determines the width in characters of the system's terminal in use.
- getUname() - Static method in class org.refcodes.runtime.SystemUtility
-
If on a *nix alike system, this method returns the output of the "uname
-a" command: "uname" prints system information, "-a" instructs it to
print all information.
- hasAnyCorrelationId() - Static method in enum org.refcodes.runtime.Correlation
-
Evaluates whether any of the given Correlation-IDs is present (not null).
- hasGetterAttribute(Object, String, Class<?>) - Static method in class org.refcodes.runtime.ReflectionUtility
-
This method tests whether the given java beans getter attribute is found
for the given object.
- hasRequestCorrelation() - Method in interface org.refcodes.runtime.RequestCorrelation
-
Determines whether Request-Correlation is being enabled or disabled.
- hasResult() - Method in class org.refcodes.runtime.ProcessResult
- hasSessionCorrelation() - Method in interface org.refcodes.runtime.SessionCorrelation
-
Determines whether Session-Correlation is being enabled or disabled.
- hasSetterAttribute(Object, String, Class<?>) - Static method in class org.refcodes.runtime.ReflectionUtility
-
This method tests whether the given java beans setter attribute is found
for the given object.
- HOST - org.refcodes.runtime.SystemContext
-
Specifies a host specific granularity.
- HOST_APPLICATION - org.refcodes.runtime.SystemContext
-
Specifies an application on a host specific granularity.
- HOST_APPLICATION_SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session for an application on a
host specific granularity.
- HOST_ETC - org.refcodes.runtime.ConfigLocator
-
Representation of the (in Unix alike systems) /etc/
folder.
- HOST_SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session for a host specific
granularity.
- HOST_USER - org.refcodes.runtime.SystemContext
-
Specifies a user on a host specific granularity.
- HOST_USER_APPLICATION - org.refcodes.runtime.SystemContext
-
Specifies an application for a user on a host specific granularity.
- HOST_USER_APPLICATION_SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session for an application for a
user on a host specific granularity.
- HOST_USER_SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session for a user on a host
specific granularity.
- isAnsiTerminal() - Static method in enum org.refcodes.runtime.Terminal
-
Determines whether ANSI escape sequences are supported by the terminal.
- isAnsiTerminalPreferred() - Static method in enum org.refcodes.runtime.Terminal
-
Determines whether ANSI escape sequences are forced to be supported or
not by REFCODES.ORG artifacts.
- isApplicationBase() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's base (the folder where
the JAR resides) folder.
- isApplicationBaseConfig() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's base (the folder where
the JAR resides) "config" subfolder.
- isApplicationBaseDotConfig() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's base (the folder where
the JAR resides) ".config" subfolder.
- isApplicationBaseDotEtc() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's base (the folder where
the JAR resides) ".etc" subfolder.
- isApplicationBaseDotSettings() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's base (the folder where
the JAR resides) ".settings" subfolder.
- isApplicationBaseEtc() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's base (the folder where
the JAR resides) "etc" subfolder.
- isApplicationBaseSettings() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's base (the folder where
the JAR resides) "settings" subfolder.
- isApplicationLevel() - Method in enum org.refcodes.runtime.SystemContext
-
Determines whether the granularity is on an application level.
- isApplicationParentConfig() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's parent (the parent
folder of the folder where the JAR resides) "config" subfolder.
- isApplicationParentDotConfig() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's parent (the parent
folder of the folder where the JAR resides) ".config" subfolder.
- isApplicationParentDotEtc() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's parent (the parent
folder of the folder where the JAR resides) ".etc" subfolder.
- isApplicationParentDotSettings() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's parent (the parent
folder of the folder where the JAR resides) ".settings" subfolder.
- isApplicationParentEtc() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's parent (the parent
folder of the folder where the JAR resides) "etc" subfolder.
- isApplicationParentSettings() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the application's parent (the parent
folder of the folder where the JAR resides) "settings" subfolder.
- isCurrentlyLineBreakRequired(int) - Static method in enum org.refcodes.runtime.Terminal
-
Determines whether wee need an explicit line-break for the given width on
the current operating system and used terminal.
- isHostEtc() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the host's "/etc" folder.
- isHostLevel() - Method in enum org.refcodes.runtime.SystemContext
-
Determines whether the granularity is on a host level.
- isLineBreakRequired(int) - Static method in enum org.refcodes.runtime.Terminal
-
Determines whether wee need an explicit line-break for the given width on
the current operating system and used terminal.
- isLineBreakRequired(int, int) - Static method in enum org.refcodes.runtime.Terminal
-
Determines whether wee need an explicit line-break for the given width on
the current operating system and used terminal.
- isSessionLevel() - Method in enum org.refcodes.runtime.SystemContext
-
Determines whether the granularity is on a session level, e.g. valid just
for the lifetime of the current runtime Java's invocation.
- isUnderTest() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Determines whether this code is executed from inside a unit test or not.
- isUserHome() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's home "~" folder.
- isUserHomeConfig() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's home "~" subfolder "config".
- isUserHomeDotConfig() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's home "~" subfolder ".config".
- isUserHomeDotEtc() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's home "~" subfolder ".etc".
- isUserHomeDotSettings() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's home "~" subfolder ".settings".
- isUserHomeEtc() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's home "~" subfolder "etc".
- isUserHomeSettings() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's home "~" subfolder "settings".
- isUserLevel() - Method in enum org.refcodes.runtime.SystemContext
-
Determines whether the granularity is on a user level.
- isUserWorkingDir() - Method in enum org.refcodes.runtime.ConfigLocator
-
Determines whether to consider the user's current working directory (as
for example bash's pwd
would print out).
- Terminal - Enum in org.refcodes.runtime
-
Enumeration with the (relevant) terminals as well as interpolated terminal
metrics.
- toAbsolutePathFromEnvironment(String, String...) - Static method in class org.refcodes.runtime.EnvironmentUtility
-
This method converts a relative path to an absolute path relative to the
path specified in the first system property provided being set with a
value.
- toAbsoluteUserHomePath(String) - Static method in class org.refcodes.runtime.EnvironmentUtility
-
This method converts a relative path to an absolute path relative to the
user's home folder.
- toBeanAttributes(Object) - Static method in class org.refcodes.runtime.ReflectionUtility
-
This method uses reflection on order to analyze a given object.
- toBestCallerStackTraceElement(Class<?>) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the best matching
StackTraceElement
belonging to the
caller of the callee.The "best matching"
StackTraceElement
is
considered to be the one not belonging to any "internal" API in a package
namespace such as "com.sun.*", "java.*" or "javax.*".
- toBestCallerStackTraceElement(Class<?>[]) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the best matching
StackTraceElement
belonging to the
caller of one of the callees (in the order passed to the method).The
"best matching"
StackTraceElement
is considered to be the one not
belonging to any "internal" API in a package namespace such as
"com.sun.*", "java.*" or "javax.*".
- toBestCallerStackTraceElement(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the best matching
StackTraceElement
belonging to the
caller of the callee.The "best matching"
StackTraceElement
is
considered to be the one not belonging to any "internal" API in a package
namespace such as "com.sun.*", "java.*" or "javax.*".
- toBestCallerStackTraceElement(StackTraceElement[]) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the best matching
StackTraceElement
belonging to the
caller of one of the callees (in the order passed to the method).The
"best matching"
StackTraceElement
is considered to be the one not
belonging to any "internal" API in a package namespace such as
"com.sun.*", "java.*" or "javax.*".
- toBestCallerStackTraceElement(String) - Static method in class org.refcodes.runtime.RuntimeUtility
-
- toBestCallerStackTraceElement(String[]) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the best matching
StackTraceElement
belonging to the
caller of one of the callees (in the order passed to the method).The
"best matching"
StackTraceElement
is considered to be the one not
belonging to any "internal" API in a package namespace such as
"com.sun.*", "java.*" or "javax.*".
- toClass(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
- toClassName() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the class name of the caller of this method without the fully
qualified package name part.
- toClassName(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
- toClassName(String) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the class name part from a fully qualified class name (which has
the fully qualified package name as part of its name).
- toClone(T) - Static method in class org.refcodes.runtime.RuntimeUtility
-
A
Cloneable
object cannot directly be cloned by casting it to be
Cloneable
:-( Thereforee this method does the job.
- toContextId() - Method in enum org.refcodes.runtime.SystemContext
-
Creates an TID most probably unique as specified by the enumeration
instance this method is invoked on.
- toContextId(String) - Method in enum org.refcodes.runtime.SystemContext
-
Creates an TID most probably unique as specified by the enumeration
instance this method is invoked on.
- toContextIds(int) - Method in enum org.refcodes.runtime.SystemContext
-
Creates an array of IDs most probably unique as specified by the provided
argument this method is invoked on.
- toContextIds(int, String) - Method in enum org.refcodes.runtime.SystemContext
-
Creates an array of IDs most probably unique as specified by the provided
argument this method is invoked on.
- toContextSequence() - Method in enum org.refcodes.runtime.SystemContext
-
Creates a
String
most probably unique as specified by the
enumeration instance this method is invoked on.
- toContextSequence(String) - Method in enum org.refcodes.runtime.SystemContext
-
Creates a
String
most probably unique as specified by the
enumeration instance this method is invoked on.
- toDump() - Method in interface org.refcodes.runtime.DumpBuilder
-
Dumps the state of the contained object (as of
ObjectAccessor.ObjectMutator.setObject(Object)
) into a
Map
which is returned as
result.
- toDump(Object) - Method in interface org.refcodes.runtime.DumpBuilder
-
Dumps the state of the provided object into a
Map
which is
returned as result.
- toDump(Object) - Method in class org.refcodes.runtime.DumpBuilderImpl
-
Dumps the state of the provided object into a
Map
which is
returned as result.
- toDump(Object, Map<String, String>) - Static method in class org.refcodes.runtime.DumpBuilderImpl
-
Dumps the state of the implementing instance into the provided
Map
which is returned as result.
- toEnvironmentVariable() - Method in interface org.refcodes.runtime.PropertyBuilder
-
Converts the key as of KeyAccessor.getKey()
to an environment variable.
- toEnvironmentVariable(String) - Method in interface org.refcodes.runtime.PropertyBuilder
-
Converts the provided key to an environment variable.
- toEnvironmentVariable(String) - Method in class org.refcodes.runtime.PropertyBuilderImpl
-
Converts the provided key to an environment variable.
- toFile(String) - Method in enum org.refcodes.runtime.ConfigLocator
-
Retrieves the first
File
identified by the given filename located
in one of the according enumeration's configuration locations.
- toFile(String, File...) - Method in enum org.refcodes.runtime.ConfigLocator
-
Retrieves the first
File
identified by the given filename located
in one of the according enumeration's configuration locations.
- toFullCorrelationId() - Static method in enum org.refcodes.runtime.Correlation
-
Returns a
String
with all Correlation-IDs found separated by a
Delimiter.CORRELATION_ID
character from each other.
- toFullyQualifiedClassName() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the fully qualified method name of the caller of this method.
- toFullyQualifiedClassName(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
- toFullyQualifiedMethodName() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the fully qualified method name of the caller of this method.
- toFullyQualifiedMethodName(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
- toFullyQualifiedPackageName() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the fully qualified package name of the caller of this method
without the class name part.
- toFullyQualifiedPackageName(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
- toFullyQualifiedPackageName(String) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the fully qualified package name part from a fully qualified
class name (which has the fully qualified package name as part of its
name).
- toHostIpAddress() - Static method in class org.refcodes.runtime.SystemUtility
-
Tries to determine a no-localhost IP-Address for this machine.
- toHostMacAddress() - Static method in class org.refcodes.runtime.SystemUtility
-
Tries to determine the host Mac-Address for this machine.
- toLauncherDir() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Generates the base path relative to the given class location.
- toLineBreak(int) - Static method in enum org.refcodes.runtime.Terminal
-
Uses
Terminal.isLineBreakRequired(int)
to retrieve the character sequence
required to suffix to a line in order to get a line break without risking
any empty lines as of automatic line wrapping.
- toMethodName() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Retrieves the fully qualified method name of the caller of this method.
- toMethodName(StackTraceElement) - Static method in class org.refcodes.runtime.RuntimeUtility
-
- toNextKey(Map<String, String>, String, char) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Returns the next free key in the properties in case of key name
collisions..
- toOperatingSystem() - Static method in enum org.refcodes.runtime.OperatingSystem
-
Determines the operating system your application is currently running on.
- toOption(String, String...) - Static method in class org.refcodes.runtime.RuntimeUtility
-
When the provided argument starts with one of the provided prefixes, then
the portion of the argument without the prefix is returned, which
represents the option in question.
- toPath() - Method in interface org.refcodes.runtime.PropertyBuilder
-
Converts the key as of KeyAccessor.getKey()
to a path (as of
PathMap
).
- toPath(String) - Method in interface org.refcodes.runtime.PropertyBuilder
-
Converts the provided key as of KeyAccessor.getKey()
to a path (as of
PathMap
).
- toPath(String) - Method in class org.refcodes.runtime.PropertyBuilderImpl
-
Converts the provided key as of KeyAccessor.getKey()
to a path (as of
PathMap
).
- toPlatformSpecificPath(String) - Static method in class org.refcodes.runtime.EnvironmentUtility
-
This method concerts the given path to a platform specific path, mainly
replacing the path separator accordingly.
- toPreferredTerminalHeight() - Static method in enum org.refcodes.runtime.Terminal
-
Does some calculation to always return a sound console height (never
returns -1).
- toPreferredTerminalWidth() - Static method in enum org.refcodes.runtime.Terminal
-
Does some calculation to always return a sound console width (never
returns -1).
- toPrettySystemInfo() - Static method in class org.refcodes.runtime.SystemUtility
-
Gathers all available system information from this Artifac's point of
view.
- toProperties(String[]) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Creates a
Map
from the provided command line arguments using the
CommandArgPrefix.toPrefixes()
prefixes to identify the keys (and
the values) from the provided arguments.
- toProperties(String[], String[], char) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Creates a
Map
from the provided command line arguments using the
provided prefixes to identify the keys (and the values) from the provided
arguments.
- toPropertyValue(String, SystemProperty, EnvironmentVariable...) - Static method in class org.refcodes.runtime.SystemUtility
-
Gets the value for the provided properties, if non was found then the
default value is taken.
- toPropertyValue(SystemProperty, EnvironmentVariable...) - Static method in class org.refcodes.runtime.SystemUtility
-
Gets the value for the provided properties, if non was found then null is
returned.
- toShell() - Static method in enum org.refcodes.runtime.Shell
-
Tries to determine the command line interpreter (CLI) - if any - this
process is running in, e.g. whether we are running in a DOS console
environment or a Linux alike Shell.
- toStackTrace() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Gets the stack trace for the current thread.
- toString() - Method in class org.refcodes.runtime.ProcessResult
- toString(String, String) - Static method in class org.refcodes.runtime.RuntimeUtility
-
Creates a string of a super class's
Object.toString()
method and
the provided "toString" text.
- toSystemInfo() - Static method in class org.refcodes.runtime.SystemUtility
-
Gathers all available system information from this Artifac's point of
view.
- toSystemProperty() - Method in interface org.refcodes.runtime.PropertyBuilder
-
Converts the key as of KeyAccessor.getKey()
to a system property.
- toSystemProperty(String) - Method in interface org.refcodes.runtime.PropertyBuilder
-
Converts the provided key to a system property.
- toSystemProperty(String) - Method in class org.refcodes.runtime.PropertyBuilderImpl
-
Converts the provided key to a system property.
- toTerminal() - Static method in enum org.refcodes.runtime.Terminal
-
Determines the terminal your application is currently in.
- toUserWorkingDir() - Static method in class org.refcodes.runtime.RuntimeUtility
-
Tries to determine the current directory from which the Java programm was
started for example as of bash's pwd
command.
- UNIX - org.refcodes.runtime.OperatingSystem
-
Unix / Linux / BSD like operating system.
- UNKNOWN - org.refcodes.runtime.OperatingSystem
-
Unknown operating system.
- UNKNOWN - org.refcodes.runtime.Shell
-
- UNKNOWN - org.refcodes.runtime.Terminal
-
- USER - org.refcodes.runtime.SystemContext
-
Specifies a user specific granularity.
- USER_APPLICATION - org.refcodes.runtime.SystemContext
-
Specifies a user specific granularity.
- USER_APPLICATION_SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session and a user specific
granularity.
- USER_HOME - org.refcodes.runtime.ConfigLocator
-
Representation of the executing user's home folder.
- USER_HOME_ALL - org.refcodes.runtime.ConfigLocator
-
Representation of all the USER_HOME_*
folders.
- USER_HOME_CONFIG - org.refcodes.runtime.ConfigLocator
-
Representation of the config
folder relative to the
executing user's home folder.
- USER_HOME_DOT_CONFIG - org.refcodes.runtime.ConfigLocator
-
Representation of the .config
folder relative to the
executing user's home folder.
- USER_HOME_DOT_ETC - org.refcodes.runtime.ConfigLocator
-
Representation of the .etc
folder relative to the executing
user's home folder.
- USER_HOME_DOT_SETTINGS - org.refcodes.runtime.ConfigLocator
-
Representation of the .settings
folder relative to the
executing user's home folder.
- USER_HOME_ETC - org.refcodes.runtime.ConfigLocator
-
Representation of the etc
folder relative to the executing
user's home folder.
- USER_HOME_SETTINGS - org.refcodes.runtime.ConfigLocator
-
Representation of the settings
folder relative to the
executing user's home folder.
- USER_SESSION - org.refcodes.runtime.SystemContext
-
Specifies a Java runtime invokcation's session for a user specific
granularity.
- USER_WORKING_DIRECTORY - org.refcodes.runtime.ConfigLocator
-
- valueOf(String) - Static method in enum org.refcodes.runtime.ConfigLocator
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.runtime.Correlation
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.runtime.OperatingSystem
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.runtime.Shell
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.runtime.SystemContext
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.refcodes.runtime.Terminal
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.refcodes.runtime.ConfigLocator
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.runtime.Correlation
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.runtime.OperatingSystem
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.runtime.Shell
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.runtime.SystemContext
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.refcodes.runtime.Terminal
-
Returns an array containing the constants of this enum type, in
the order they are declared.