class_body
{ "{"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "JAVA_VERSION_TRIM_SIZE"
= "="
decimal_integer_literal "3"
; ";"
block_comment "/**\n * The prefix String for all Windows OS.\n */"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "OS_NAME_WINDOWS_PREFIX"
= "="
string_literal
" "\""
string_fragment "Windows"
" "\""
; ";"
line_comment "// System property constants"
line_comment "// ---------------------------------------------------------"...
line_comment "// These MUST be declared first. Other constants depend on t"...
block_comment "/**\n * The System property key for the user home directo"...
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "USER_HOME_KEY"
= "="
string_literal
" "\""
string_fragment "user.home"
" "\""
; ";"
block_comment "/**\n * The System property key for the user directory.\n "...
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "USER_DIR_KEY"
= "="
string_literal
" "\""
string_fragment "user.dir"
" "\""
; ";"
block_comment "/**\n * The System property key for the Java IO temporary"...
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_IO_TMPDIR_KEY"
= "="
string_literal
" "\""
string_fragment "java.io.tmpdir"
" "\""
; ";"
block_comment "/**\n * The System property key for the Java home directo"...
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_HOME_KEY"
= "="
string_literal
" "\""
string_fragment "java.home"
" "\""
; ";"
block_comment "/**\n * <p>\n * The <code>awt.toolkit</code> System Pr"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "AWT_TOOLKIT"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "awt.toolkit"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>file.encoding</code> System "...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "FILE_ENCODING"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "file.encoding"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>file.separator</code> System"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "FILE_SEPARATOR"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "file.separator"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.awt.fonts</code> System"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_AWT_FONTS"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.awt.fonts"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.awt.graphicsenv</code> "...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_AWT_GRAPHICSENV"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.awt.graphicsenv"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.awt.headless</code> Sys"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_AWT_HEADLESS"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.awt.headless"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.awt.printerjob</code> S"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_AWT_PRINTERJOB"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.awt.printerjob"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.class.path</code> Syste"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_CLASS_PATH"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.class.path"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.class.version</code> Sy"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_CLASS_VERSION"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.class.version"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.compiler</code> System "...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_COMPILER"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.compiler"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.endorsed.dirs</code> Sy"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_ENDORSED_DIRS"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.endorsed.dirs"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.ext.dirs</code> System "...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_EXT_DIRS"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.ext.dirs"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.home</code> System Prop"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_HOME"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
identifier "JAVA_HOME_KEY"
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.io.tmpdir</code> System"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_IO_TMPDIR"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
identifier "JAVA_IO_TMPDIR_KEY"
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.library.path</code> Sys"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_LIBRARY_PATH"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.library.path"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.runtime.name</code> Sys"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_RUNTIME_NAME"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.runtime.name"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.runtime.version</code> "...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_RUNTIME_VERSION"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.runtime.version"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.specification.name</cod"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_SPECIFICATION_NAME"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.specification.name"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.specification.vendor</c"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_SPECIFICATION_VENDOR"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.specification.vendor"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.specification.version</"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_SPECIFICATION_VERSION"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.specification.version"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.util.prefs.PreferencesF"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_UTIL_PREFS_PREFERENCES_FACTORY"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.util.prefs.PreferencesFactory"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.vendor</code> System Pr"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_VENDOR"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.vendor"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.vendor.url</code> Syste"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_VENDOR_URL"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.vendor.url"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.version</code> System P"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_VERSION"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.version"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.vm.info</code> System P"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_VM_INFO"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.vm.info"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.vm.name</code> System P"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_VM_NAME"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.vm.name"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.vm.specification.name</"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_VM_SPECIFICATION_NAME"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.vm.specification.name"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.vm.specification.vendor"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_VM_SPECIFICATION_VENDOR"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.vm.specification.vendor"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.vm.specification.versio"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_VM_SPECIFICATION_VERSION"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.vm.specification.version"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.vm.vendor</code> System"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_VM_VENDOR"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.vm.vendor"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>java.vm.version</code> Syste"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_VM_VERSION"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "java.vm.version"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>line.separator</code> System"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "LINE_SEPARATOR"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "line.separator"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>os.arch</code> System Proper"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "OS_ARCH"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "os.arch"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>os.name</code> System Proper"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "OS_NAME"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "os.name"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>os.version</code> System Pro"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "OS_VERSION"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "os.version"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>path.separator</code> System"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "PATH_SEPARATOR"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "path.separator"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>user.country</code> or <code"...
field_declaration (+43 nodes collapsed)
block_comment "/**\n * <p>\n * The <code>user.dir</code> System Prope"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "USER_DIR"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
identifier "USER_DIR_KEY"
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>user.home</code> System Prop"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "USER_HOME"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
identifier "USER_HOME_KEY"
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>user.language</code> System "...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "USER_LANGUAGE"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "user.language"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>user.name</code> System Prop"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "USER_NAME"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "user.name"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * The <code>user.timezone</code> System "...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "USER_TIMEZONE"
= "="
method_invocation
identifier "getSystemProperty"
argument_list
( "("
string_literal
" "\""
string_fragment "user.timezone"
" "\""
) ")"
; ";"
line_comment "// Java version"
line_comment "// ---------------------------------------------------------"...
line_comment "// This MUST be declared after those above as it depends on "...
line_comment "// values being set up"
block_comment "/**\n * <p>\n * Gets the Java version as a <code>Strin"...
field_declaration
modifiers
public "public"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "JAVA_VERSION_TRIMMED"
= "="
method_invocation
identifier "getJavaVersionTrimmed"
argument_list
( "("
) ")"
; ";"
line_comment "// Java version values"
line_comment "// ---------------------------------------------------------"...
line_comment "// These MUST be declared after the trim above as they depen"...
line_comment "// value being set up"
block_comment "/**\n * <p>\n * Gets the Java version as a <code>float"...
field_declaration
modifiers
public "public"
static "static"
final "final"
floating_point_type
float "float"
variable_declarator
identifier "JAVA_VERSION_FLOAT"
= "="
method_invocation
identifier "getJavaVersionAsFloat"
argument_list
( "("
) ")"
; ";"
block_comment "/**\n * <p>\n * Gets the Java version as an <code>int<"...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "JAVA_VERSION_INT"
= "="
method_invocation
identifier "getJavaVersionAsInt"
argument_list
( "("
) ")"
; ";"
line_comment "// Java version checks"
line_comment "// ---------------------------------------------------------"...
line_comment "// These MUST be declared after those above as they depend o"...
line_comment "// values being set up"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Java v"...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_JAVA_1_1"
= "="
method_invocation
identifier "getJavaVersionMatches"
argument_list
( "("
string_literal
" "\""
string_fragment "1.1"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Java v"...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_JAVA_1_2"
= "="
method_invocation
identifier "getJavaVersionMatches"
argument_list
( "("
string_literal
" "\""
string_fragment "1.2"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Java v"...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_JAVA_1_3"
= "="
method_invocation
identifier "getJavaVersionMatches"
argument_list
( "("
string_literal
" "\""
string_fragment "1.3"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Java v"...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_JAVA_1_4"
= "="
method_invocation
identifier "getJavaVersionMatches"
argument_list
( "("
string_literal
" "\""
string_fragment "1.4"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Java v"...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_JAVA_1_5"
= "="
method_invocation
identifier "getJavaVersionMatches"
argument_list
( "("
string_literal
" "\""
string_fragment "1.5"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Java v"...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_JAVA_1_6"
= "="
method_invocation
identifier "getJavaVersionMatches"
argument_list
( "("
string_literal
" "\""
string_fragment "1.6"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Java v"...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_JAVA_1_7"
= "="
method_invocation
identifier "getJavaVersionMatches"
argument_list
( "("
string_literal
" "\""
string_fragment "1.7"
" "\""
) ")"
; ";"
line_comment "// Operating system checks"
line_comment "// ---------------------------------------------------------"...
line_comment "// These MUST be declared after those above as they depend o"...
line_comment "// values being set up"
line_comment "// OS names from http://www.vamphq.com/os.html"
line_comment "// Selected ones included - please advise dev@commons.apache"...
line_comment "// if you want another added or a mistake corrected"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is AIX.\n "...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_OS_AIX"
= "="
method_invocation
identifier "getOSMatchesName"
argument_list
( "("
string_literal
" "\""
string_fragment "AIX"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is HP-UX."...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_OS_HP_UX"
= "="
method_invocation
identifier "getOSMatchesName"
argument_list
( "("
string_literal
" "\""
string_fragment "HP-UX"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Irix.\n"...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_OS_IRIX"
= "="
method_invocation
identifier "getOSMatchesName"
argument_list
( "("
string_literal
" "\""
string_fragment "Irix"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Linux."...
field_declaration (+30 nodes collapsed)
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Mac.\n "...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_OS_MAC"
= "="
method_invocation
identifier "getOSMatchesName"
argument_list
( "("
string_literal
" "\""
string_fragment "Mac"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Mac.\n "...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_OS_MAC_OSX"
= "="
method_invocation
identifier "getOSMatchesName"
argument_list
( "("
string_literal
" "\""
string_fragment "Mac OS X"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is OS/2.\n"...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_OS_OS2"
= "="
method_invocation
identifier "getOSMatchesName"
argument_list
( "("
string_literal
" "\""
string_fragment "OS/2"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Solari"...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_OS_SOLARIS"
= "="
method_invocation
identifier "getOSMatchesName"
argument_list
( "("
string_literal
" "\""
string_fragment "Solaris"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is SunOS."...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_OS_SUN_OS"
= "="
method_invocation
identifier "getOSMatchesName"
argument_list
( "("
string_literal
" "\""
string_fragment "SunOS"
" "\""
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is a POSI"...
field_declaration (+29 nodes collapsed)
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Window"...
field_declaration
modifiers
public "public"
static "static"
final "final"
boolean_type "boolean"
variable_declarator
identifier "IS_OS_WINDOWS"
= "="
method_invocation
identifier "getOSMatchesName"
argument_list
( "("
identifier "OS_NAME_WINDOWS_PREFIX"
) ")"
; ";"
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Window"...
field_declaration (+21 nodes collapsed)
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Window"...
field_declaration (+27 nodes collapsed)
line_comment "// Java 1.2 running on Windows98 returns 'Windows 95', hence"...
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Window"...
field_declaration (+27 nodes collapsed)
line_comment "// Java 1.2 running on Windows98 returns 'Windows 95', hence"...
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Window"...
field_declaration (+21 nodes collapsed)
line_comment "// Java 1.2 running on WindowsME may return 'Windows 95', he"...
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Window"...
field_declaration (+22 nodes collapsed)
line_comment "// Windows 2000 returns 'Windows 2000' but may suffer from s"...
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Window"...
field_declaration (+21 nodes collapsed)
line_comment "// ---------------------------------------------------------"...
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Window"...
field_declaration (+21 nodes collapsed)
block_comment "/**\n * <p>\n * Is <code>true</code> if this is Window"...
field_declaration (+21 nodes collapsed)
block_comment "/**\n * <p>\n * Gets the Java home directory as a <cod"...
method_declaration (+29 nodes collapsed)
block_comment "/**\n * <p>\n * Gets the Java IO temporary directory a"...
method_declaration (+29 nodes collapsed)
block_comment "/**\n * <p>\n * Gets the Java version number as a <cod"...
method_declaration (+32 nodes collapsed)
block_comment "/**\n * <p>\n * Gets the Java version number as an <co"...
method_declaration (+32 nodes collapsed)
block_comment "/**\n * <p>\n * Decides if the Java version matches.\n "...
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Trims the text of the java version to start with "...
method_declaration (+101 nodes collapsed)
block_comment "/**\n * Decides if the operating system matches.\n * \n"...
method_declaration (+34 nodes collapsed)
block_comment "/**\n * Decides if the operating system matches.\n * \n"...
method_declaration (+26 nodes collapsed)
line_comment "// ---------------------------------------------------------"...
block_comment "/**\n * <p>\n * Gets a System property, defaulting to "...
method_declaration (+72 nodes collapsed)
block_comment "/**\n * <p>\n * Gets the user directory as a <code>Fil"...
method_declaration (+29 nodes collapsed)
block_comment "/**\n * <p>\n * Gets the user home directory as a <cod"...
method_declaration (+29 nodes collapsed)
block_comment "/**\n * Returns whether the {@link #JAVA_AWT_HEADLESS} va"...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * <p>\n * Is the Java version at least the reque"...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * <p>\n * Is the Java version at least the reque"...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * <p>\n * Decides if the Java version matches.\n "...
method_declaration (+45 nodes collapsed)
block_comment "/**\n * Decides if the operating system matches.\n * <"...
method_declaration (+69 nodes collapsed)
block_comment "/**\n * Decides if the operating system matches.\n * <"...
method_declaration (+45 nodes collapsed)
block_comment "/**\n * <p>\n * Converts the given Java version string"...
method_declaration (+31 nodes collapsed)
block_comment "/**\n * <p>\n * Converts the given Java version string"...
method_declaration
modifiers
static "static"
floating_point_type
float "float"
identifier "toJavaVersionInt"
formal_parameters
( "("
formal_parameter
type_identifier "String"
identifier "version"
) ")"
block
{ "{"
return_statement
return "return"
method_invocation
identifier "toVersionInt"
argument_list
( "("
method_invocation
identifier "toJavaVersionIntArray"
argument_list
( "("
identifier "version"
, ","
identifier "JAVA_VERSION_TRIM_SIZE"
) ")"
) ")"
; ";"
} "}"
block_comment "/**\n * <p>\n * Converts the given Java version string"...
method_declaration (+33 nodes collapsed)
block_comment "/**\n * <p>\n * Converts the given Java version string"...
method_declaration (+197 nodes collapsed)
block_comment "/**\n * <p>\n * Converts given the Java version array "...
method_declaration (+182 nodes collapsed)
block_comment "/**\n * <p>\n * Converts given the Java version array "...
method_declaration (+132 nodes collapsed)
line_comment "// ---------------------------------------------------------"...
block_comment "/**\n * <p>\n * SystemUtils instances should NOT be co"...
constructor_declaration
modifiers
public "public"
identifier "SystemUtils"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
super "super"
argument_list
( "("
) ")"
; ";"
} "}"
} "}"