/** * Writes a binary representation of the feature intended for use by a lexicon, omitting * redundant information when possible. * * @param out The output stream. * @param lex The lexicon out of which this feature is being written. * @param c The fully qualified name of the assumed class. The runtime class of this feature * won't be written if it's equivalent to <code>c</code>. * @param p The assumed package string. This feature's package string won't be written if it's * equivalent to <code>p</code>. * @param g The assumed classifier name string. This feature's classifier name string won't be * written if it's equivalent to <code>g</code>. * @param si The assumed identifier as a string. If this feature has a string identifier, it * won't be written if it's equivalent to <code>si</code>. * @param bi The assumed identifier as a byte string. If this feature has a byte string * identifier, it won't be written if it's equivalent to <code>bi</code>. * @return The name of the runtime type of this feature. **/ public String lexWrite(ExceptionlessOutputStream out, Lexicon lex, String c, String p, String g, String si, ByteString bi) { String result = super.lexWrite(out, lex, c, p, g, si, bi); out.writeInt(lex.lookupChild(left)); out.writeInt(lex.lookupChild(right)); return result; }
/** * Writes a binary representation of the feature intended for use by a lexicon, omitting * redundant information when possible. * * @param out The output stream. * @param lex The lexicon out of which this feature is being written. * @param c The fully qualified name of the assumed class. The runtime class of this feature * won't be written if it's equivalent to <code>c</code>. * @param p The assumed package string. This feature's package string won't be written if it's * equivalent to <code>p</code>. * @param g The assumed classifier name string. This feature's classifier name string won't be * written if it's equivalent to <code>g</code>. * @param si The assumed identifier as a string. If this feature has a string identifier, it * won't be written if it's equivalent to <code>si</code>. * @param bi The assumed identifier as a byte string. If this feature has a byte string * identifier, it won't be written if it's equivalent to <code>bi</code>. * @return The name of the runtime type of this feature. **/ public String lexWrite(ExceptionlessOutputStream out, Lexicon lex, String c, String p, String g, String si, ByteString bi) { String result = super.lexWrite(out, lex, c, p, g, si, bi); out.writeInt(lex.lookupChild(left)); out.writeInt(lex.lookupChild(right)); return result; }
/** * Writes a binary representation of the feature intended for use by a lexicon, omitting * redundant information when possible. * * @param out The output stream. * @param lex The lexicon out of which this feature is being written. * @param c The fully qualified name of the assumed class. The runtime class of this feature * won't be written if it's equivalent to <code>c</code>. * @param p The assumed package string. This feature's package string won't be written if it's * equivalent to <code>p</code>. * @param g The assumed classifier name string. This feature's classifier name string won't be * written if it's equivalent to <code>g</code>. * @param si The assumed identifier as a string. If this feature has a string identifier, it * won't be written if it's equivalent to <code>si</code>. * @param bi The assumed identifier as a byte string. If this feature has a byte string * identifier, it won't be written if it's equivalent to <code>bi</code>. * @return The name of the runtime type of this feature. **/ public String lexWrite(ExceptionlessOutputStream out, Lexicon lex, String c, String p, String g, String si, ByteString bi) { String result = super.lexWrite(out, lex, c, p, g, si, bi); out.writeInt(lex.lookupChild(referent)); return result; }
/** * Writes a binary representation of the feature intended for use by a lexicon, omitting * redundant information when possible. * * @param out The output stream. * @param lex The lexicon out of which this feature is being written. * @param c The fully qualified name of the assumed class. The runtime class of this feature * won't be written if it's equivalent to <code>c</code>. * @param p The assumed package string. This feature's package string won't be written if it's * equivalent to <code>p</code>. * @param g The assumed classifier name string. This feature's classifier name string won't be * written if it's equivalent to <code>g</code>. * @param si The assumed identifier as a string. If this feature has a string identifier, it * won't be written if it's equivalent to <code>si</code>. * @param bi The assumed identifier as a byte string. If this feature has a byte string * identifier, it won't be written if it's equivalent to <code>bi</code>. * @return The name of the runtime type of this feature. **/ public String lexWrite(ExceptionlessOutputStream out, Lexicon lex, String c, String p, String g, String si, ByteString bi) { String result = super.lexWrite(out, lex, c, p, g, si, bi); out.writeInt(lex.lookupChild(referent)); return result; }