public void write(CompressingDataOutputStream s) throws IOException { // s.writeByte(MODIFIERS_PATTERN); s.writeShort(requiredModifiers); s.writeShort(forbiddenModifiers); }
public static void writeArray(UnresolvedType[] types, CompressingDataOutputStream stream) throws IOException { int len = types.length; stream.writeShort(len); for (UnresolvedType type : types) { type.write(stream); } }
/** * @param name a simple name (for example a method or field name) */ public void writeCompressedName(String name) throws IOException { writeShort(compressName(name)); }
@Override public void write(CompressingDataOutputStream s) throws IOException { s.writeShort(typePatterns.length); for (int i = 0; i < typePatterns.length; i++) { typePatterns[i].write(s); } // writeLocation(s); }
/** * @param signature of the form 'La/b/c/d;' */ public void writeCompressedSignature(String signature) throws IOException { writeShort(compressSignature(signature)); }
/** * @param path a file system path 'c:\a\b\c.txt' or '/a/b/c.txt' */ public void writeCompressedPath(String path) throws IOException { writeShort(compressFilepath(path)); }
@Override public void write(CompressingDataOutputStream s) throws IOException { s.writeShort(CURRENT_VERSION_MAJOR); s.writeShort(CURRENT_VERSION_MINOR); s.writeLong(Version.getTime()); // build used to construct the // class... }
public void write(CompressingDataOutputStream s) throws IOException { s.writeShort(typePatterns.length); for (int i = 0; i < typePatterns.length; i++) { typePatterns[i].write(s); } writeLocation(s); }
public void write(CompressingDataOutputStream out) throws IOException { out.writeByte(TypePattern.BINDING); type.write(out); out.writeShort((short) formalIndex); out.writeBoolean(isVarArgs); writeLocation(out); }
@Override public void write(CompressingDataOutputStream s) throws IOException { s.writeByte(AnnotationTypePattern.BINDING); s.writeByte(VERSION); annotationType.write(s); s.writeShort((short) formalIndex); writeLocation(s); }
@Override public void write(CompressingDataOutputStream s) throws IOException { if (s.canCompress()) { s.writeCompressedPath(sourceFileName); } else { s.writeUTF(sourceFileName); } s.writeInt(lineBreaks.length); int previous = 0; for (int i = 0, max = lineBreaks.length; i < max; i++) { s.writeShort(lineBreaks[i] - previous); previous = lineBreaks[i]; } }
@Override public void write(CompressingDataOutputStream s) throws IOException { s.writeByte(AnnotationTypePattern.BINDINGFIELD2); formalType.write(s); // the type of the field within the annotation s.writeShort((short) formalIndex); annotationType.write(s); // the annotation type s.writeUTF(formalName); writeLocation(s); }
private static void writeAnyReweavableData(WeaverStateInfo wsi, CompressingDataOutputStream s, boolean compress) throws IOException { if (wsi.isReweavable()) { // Write out list of aspects that must exist next time we try and weave this class s.writeShort(wsi.aspectsAffectingType.size()); for (String type : wsi.aspectsAffectingType) { if (compress) { s.writeCompressedSignature(type); } else { s.writeUTF(type); } } byte[] data = wsi.unwovenClassFile; // if we're not in diffMode, write the unwovenClassFile now, // otherwise we'll insert it as a diff later if (!wsi.reweavableDiffMode) { s.writeInt(data.length); s.write(wsi.unwovenClassFile); } } }
s.writeShort(n); for (Entry e : typeMungers) { if (s.canCompress()) {
s.writeByte(TypePattern.WILD); s.writeByte(VERSION); s.writeShort(namePatterns.length); for (int i = 0; i < namePatterns.length; i++) { namePatterns[i].write(s);