public static void writeArray(ResolvedMember[] members, CompressingDataOutputStream s) throws IOException { s.writeInt(members.length); for (int i = 0, len = members.length; i < len; i++) { members[i].write(s); } }
public void write(CompressingDataOutputStream stream) throws IOException { // stream.writeInt(serializationVersion); stream.writeInt(shadowMungers.size()); for (Iterator iterator = shadowMungers.iterator(); iterator.hasNext();) { ShadowMunger shadowMunger = (ShadowMunger) iterator.next(); shadowMunger.write(stream); } // // private List /* ShadowMunger */shadowMungers = null; // // private List typeMungers = null; // // private List lateTypeMungers = null; // // private List declareSofts = null; // // private List declareParents = null; // // private List declareAnnotationOnTypes = null; // // private List declareAnnotationOnFields = null; // // private List declareAnnotationOnMethods = null; // includes constructors // // private List declareDominates = null; // // private boolean changedSinceLastReset = false; // } }
public void write(CompressingDataOutputStream s) throws IOException { // name, upperbound, additionalInterfaceBounds, lowerbound s.writeUTF(name); superclass.write(s); if (superInterfaces.length == 0) { s.writeInt(0); } else { s.writeInt(superInterfaces.length); for (int i = 0; i < superInterfaces.length; i++) { UnresolvedType ibound = superInterfaces[i]; ibound.write(s); } } }
public void write(CompressingDataOutputStream s) throws IOException { s.writeInt(patterns.length); for (int i = 0; i < patterns.length; i++) { patterns[i].write(s); } writeLocation(s); }
public void write(CompressingDataOutputStream stream) throws IOException { stream.writeInt(VERSION_1); stream.writeInt(shadowMungerKind); // determines real subclass stream.writeInt(start); stream.writeInt(end); PersistenceSupport.write(stream, sourceContext); PersistenceSupport.write(stream, sourceLocation); PersistenceSupport.write(stream, binarySourceLocation); PersistenceSupport.write(stream, binaryFile); declaringType.write(stream); stream.writeBoolean(isBinary); stream.writeBoolean(checkedIsBinary); pointcut.write(stream); }
protected final void writeSourceLocation(CompressingDataOutputStream s) throws IOException { if (s.canCompress()) { s.writeByte(1 + (location == null ? 0 : 1)); // 1==compressed no location 2==compressed with location if (location != null) { s.writeCompressedPath(location.getSourceFile().getPath()); s.writeInt(location.getLine()); s.writeInt(location.getOffset()); } } else { s.writeByte(0); ObjectOutputStream oos = new ObjectOutputStream(s); oos.writeObject(new Boolean(location != null)); if (location != null) { oos.writeObject(location.getSourceFile()); oos.writeObject(new Integer(location.getLine())); oos.writeObject(new Integer(location.getOffset())); } oos.flush(); oos.close(); } }
@Override public void write(CompressingDataOutputStream s) throws IOException { s.writeByte(AnnotationTypePattern.WILD); s.writeByte(VERSION); typePattern.write(s); writeLocation(s); s.writeBoolean(isForParameterAnnotationMatch()); // PVAL if (annotationValues == null) { s.writeInt(0); } else { s.writeInt(annotationValues.size()); Set<String> key = annotationValues.keySet(); for (Iterator<String> keys = key.iterator(); keys.hasNext();) { String k = keys.next(); s.writeUTF(k); s.writeUTF(annotationValues.get(k)); } } }
@Override public void write(CompressingDataOutputStream s) throws IOException { kind.write(s); pointcut.write(s); s.writeByte(extraParameterFlags); s.writeInt(start); s.writeInt(end); if (kind == AdviceKind.Around) { s.writeBoolean(proceedInInners); ResolvedMemberImpl.writeArray(proceedCallSignatures, s); FileUtil.writeBooleanArray(formalsUnchangedToProceed, s); UnresolvedType.writeArray(declaredExceptions, s); } }
public void write(CompressingDataOutputStream s) throws IOException { s.writeByte(Declare.PARENTSMIXIN); child.write(s); parents.write(s); writeLocation(s); s.writeInt(bitflags); }
@Override public void write(CompressingDataOutputStream s) throws IOException { s.writeByte(AnnotationTypePattern.EXACT); s.writeByte(VERSION); s.writeBoolean(bindingPattern); if (bindingPattern) { s.writeUTF(formalName); } else { annotationType.write(s); } writeLocation(s); s.writeBoolean(isForParameterAnnotationMatch()); if (annotationValues == null) { s.writeInt(0); } else { s.writeInt(annotationValues.size()); Set<String> key = annotationValues.keySet(); for (Iterator<String> keys = key.iterator(); keys.hasNext();) { String k = keys.next(); s.writeUTF(k); s.writeUTF(annotationValues.get(k)); } } }
@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]; } }
public void write(CompressingDataOutputStream s) throws IOException { kind.write(s); signature.write(s); writeSuperMethodsCalled(s); writeSourceLocation(s); writeOutTypeAliases(s); s.writeInt(version); }
public void write(CompressingDataOutputStream s) throws IOException { s.writeUTF(name); upperBound.write(s); if (interfaceBounds == null) { s.writeInt(0); } else { s.writeInt(interfaceBounds.length); for (int i = 0; i < interfaceBounds.length; i++) { interfaceBounds[i].write(s); } } s.writeBoolean(hasLowerBound()); if (hasLowerBound()) { lowerBound.write(s); } writeLocation(s); }
@Override public void write(CompressingDataOutputStream stream) throws IOException { kind.write(stream); stream.writeInt(version); targetType.write(stream); stream.writeUTF(memberTypeName); writeSourceLocation(stream); writeOutTypeAliases(stream); }
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); } } }
public void write(CompressingDataOutputStream s) throws IOException { kind.write(s); signature.write(s); aspect.write(s); s.writeUTF(implClassName); typePattern.write(s); fieldType.write(s); s.writeUTF(factoryMethodName); s.writeUTF(factoryMethodSignature); s.writeInt(bitflags); }
@Override public void write(CompressingDataOutputStream s) throws IOException { getDeclaringType().write(s); s.writeInt(getModifiers()); s.writeUTF(getName()); UnresolvedType.writeArray(getParameterTypes(), s); pointcut.write(s); }