/** Loads the kind from the stream */ Kind readKind (DataInput is) throws IOException { int offset = is.readInt (); int line = is.readInt (); int column = is.readInt (); if (offset == -1) { // line and column must be valid return new LineKind (line, column, this); } if (line == -1 || column == -1) { // offset kind return new OffsetKind (offset, this); } // out of memory representation return new OutKind (offset, line, column, this); }
/** Loads the kind from the stream */ Kind readKind (DataInput is) throws IOException { int offset = is.readInt (); int line = is.readInt (); int column = is.readInt (); if (offset == -1) { // line and column must be valid return new LineKind (line, column, this); } if (line == -1 || column == -1) { // offset kind return new OffsetKind (offset, this); } // out of memory representation return new OutKind (offset, line, column, this); }
/** Loads the kind from the stream */ Kind readKind(DataInput is) throws IOException { int offset = is.readInt(); int line = is.readInt(); int column = is.readInt(); if (offset == -1) { // line and column must be valid return new LineKind(line, column, this); } if ((line == -1) || (column == -1)) { // offset kind return new OffsetKind(offset, this); } // out of memory representation return new OutKind(offset, line, column, this); }
/** Converts the kind to representation out from memory */ public Kind fromMemory () { return new OutKind (this, mgr); }
/** Converts the kind to representation out from memory */ public Kind fromMemory () { return new OutKind (this, mgr); }
/** Converts the kind to representation out from memory */ public Kind fromMemory() { return new OutKind(this, mgr); } }