1 16 package com.google.gwt.dev.jdt; 17 18 import com.google.gwt.dev.About; 19 20 import java.io.Serializable ; 21 22 25 public class ByteCode implements Serializable { 26 27 private static final String systemString = System.getProperty( 28 "java.class.path", "."); 29 30 private static final String systemStringAsIdentifier = About.GWT_VERSION 31 + "_" + systemString.hashCode(); 32 33 40 public static String getCurrentSystemIdentifier() { 41 return systemStringAsIdentifier; 42 } 43 44 private final String binaryTypeName; 45 46 private final byte[] bytes; 47 48 private final String location; 49 50 private final String version; 51 52 private final boolean isTransient; 53 54 57 public ByteCode(String binaryTypeName, byte[] bytes, String location, 58 boolean isTransient) { 59 this.binaryTypeName = binaryTypeName; 60 this.bytes = bytes; 61 this.location = location; 62 this.version = systemStringAsIdentifier; 63 this.isTransient = isTransient; 64 } 65 66 public String getBinaryTypeName() { 67 return binaryTypeName; 68 } 69 70 public byte[] getBytes() { 71 return bytes; 72 } 73 74 public String getLocation() { 75 return location; 76 } 77 78 public String getSystemIdentifier() { 79 return version; 80 } 81 82 public boolean isTransient() { 83 return isTransient; 84 } 85 86 } 90 | Popular Tags |