@Override public void write(CompressingDataOutputStream out) throws IOException { out.writeUTF(new String(pattern)); }
/** * Write out an UnresolvedType - the signature should be enough. */ public final void write(CompressingDataOutputStream s) throws IOException { s.writeUTF(getSignature()); }
@Override public void write(CompressingDataOutputStream s) throws IOException { s.writeByte(AnnotationTypePattern.EXACTFIELD); s.writeUTF(formalName); annotationType.write(s); writeLocation(s); }
@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 { 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 { s.writeByte(Declare.ANNOTATION); if (kind.id == AT_FIELD.id && isRemover) { s.writeInt(AT_REMOVE_FROM_FIELD.id); } else { s.writeInt(kind.id); } int max = 0; s.writeByte(max = annotationStrings.size()); for (int i = 0; i < max; i++) { s.writeUTF(annotationStrings.get(i)); } s.writeByte(max = annotationMethods.size()); for (int i = 0; i < max; i++) { s.writeUTF(annotationMethods.get(i)); } if (typePattern != null) { typePattern.write(s); } if (signaturePattern != null) { AbstractSignaturePattern.writeCompoundSignaturePattern(s, signaturePattern); } writeLocation(s); }
public void write(CompressingDataOutputStream s) throws IOException { s.writeByte(Declare.TYPE_ERROR_OR_WARNING); s.writeBoolean(isError); typePattern.write(s); s.writeUTF(message); writeLocation(s); }
public void write(CompressingDataOutputStream s) throws IOException { s.writeByte(Declare.ERROR_OR_WARNING); s.writeBoolean(isError); pointcut.write(s); s.writeUTF(message); 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); }
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); } } }
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); } } }
@Override public void write(CompressingDataOutputStream stream) throws IOException { kind.write(stream); stream.writeInt(version); targetType.write(stream); stream.writeUTF(memberTypeName); writeSourceLocation(stream); writeOutTypeAliases(stream); }
public void write(CompressingDataOutputStream s) throws IOException { // XXX ignores onType s.writeByte(Pointcut.REFERENCE); if (onType != null) { s.writeBoolean(true); onType.write(s); } else { s.writeBoolean(false); } s.writeUTF(name); arguments.write(s); writeLocation(s); }
@Override public void write(CompressingDataOutputStream s) throws IOException { getDeclaringType().write(s); s.writeInt(getModifiers()); s.writeUTF(getName()); UnresolvedType.writeArray(getParameterTypes(), s); pointcut.write(s); }
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); }