StandardSystemProperty.java 3.32 KB
package com.google.common.base;

import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtIncompatible;
import javax.annotation.Nullable;

@Beta
@GwtIncompatible("java.lang.System#getProperty")
public enum StandardSystemProperty
{
  private final String a;
  
  static
  {
    JAVA_VENDOR = new StandardSystemProperty("JAVA_VENDOR", 1, "java.vendor");
    JAVA_VENDOR_URL = new StandardSystemProperty("JAVA_VENDOR_URL", 2, "java.vendor.url");
    JAVA_HOME = new StandardSystemProperty("JAVA_HOME", 3, "java.home");
    JAVA_VM_SPECIFICATION_VERSION = new StandardSystemProperty("JAVA_VM_SPECIFICATION_VERSION", 4, "java.vm.specification.version");
    JAVA_VM_SPECIFICATION_VENDOR = new StandardSystemProperty("JAVA_VM_SPECIFICATION_VENDOR", 5, "java.vm.specification.vendor");
    JAVA_VM_SPECIFICATION_NAME = new StandardSystemProperty("JAVA_VM_SPECIFICATION_NAME", 6, "java.vm.specification.name");
    JAVA_VM_VERSION = new StandardSystemProperty("JAVA_VM_VERSION", 7, "java.vm.version");
    JAVA_VM_VENDOR = new StandardSystemProperty("JAVA_VM_VENDOR", 8, "java.vm.vendor");
    JAVA_VM_NAME = new StandardSystemProperty("JAVA_VM_NAME", 9, "java.vm.name");
    JAVA_SPECIFICATION_VERSION = new StandardSystemProperty("JAVA_SPECIFICATION_VERSION", 10, "java.specification.version");
    JAVA_SPECIFICATION_VENDOR = new StandardSystemProperty("JAVA_SPECIFICATION_VENDOR", 11, "java.specification.vendor");
    JAVA_SPECIFICATION_NAME = new StandardSystemProperty("JAVA_SPECIFICATION_NAME", 12, "java.specification.name");
    JAVA_CLASS_VERSION = new StandardSystemProperty("JAVA_CLASS_VERSION", 13, "java.class.version");
    JAVA_CLASS_PATH = new StandardSystemProperty("JAVA_CLASS_PATH", 14, "java.class.path");
    JAVA_LIBRARY_PATH = new StandardSystemProperty("JAVA_LIBRARY_PATH", 15, "java.library.path");
    JAVA_IO_TMPDIR = new StandardSystemProperty("JAVA_IO_TMPDIR", 16, "java.io.tmpdir");
    JAVA_COMPILER = new StandardSystemProperty("JAVA_COMPILER", 17, "java.compiler");
    JAVA_EXT_DIRS = new StandardSystemProperty("JAVA_EXT_DIRS", 18, "java.ext.dirs");
    OS_NAME = new StandardSystemProperty("OS_NAME", 19, "os.name");
    OS_ARCH = new StandardSystemProperty("OS_ARCH", 20, "os.arch");
    OS_VERSION = new StandardSystemProperty("OS_VERSION", 21, "os.version");
    FILE_SEPARATOR = new StandardSystemProperty("FILE_SEPARATOR", 22, "file.separator");
    PATH_SEPARATOR = new StandardSystemProperty("PATH_SEPARATOR", 23, "path.separator");
    LINE_SEPARATOR = new StandardSystemProperty("LINE_SEPARATOR", 24, "line.separator");
    USER_NAME = new StandardSystemProperty("USER_NAME", 25, "user.name");
    USER_HOME = new StandardSystemProperty("USER_HOME", 26, "user.home");
  }
  
  private StandardSystemProperty(String paramString)
  {
    this.a = paramString;
  }
  
  public final String key()
  {
    return this.a;
  }
  
  public final String toString()
  {
    String str1 = String.valueOf(String.valueOf(key()));
    String str2 = String.valueOf(String.valueOf(value()));
    return str1.length() + 1 + str2.length() + str1 + "=" + str2;
  }
  
  @Nullable
  public final String value()
  {
    return System.getProperty(this.a);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/google/common/base/StandardSystemProperty.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */