public class DebugAttributeVisitor extends java.lang.Object implements AttributeVisitor
AttributeVisitor
delegates to a given AttributeVisitor
, timing the
invocations and printing out warnings when the timings exceed a given threshold.Constructor and Description |
---|
DebugAttributeVisitor(AttributeVisitor attributeVisitor)
Creates a new DebugAttributeVisitor.
|
DebugAttributeVisitor(java.lang.String message,
AttributeVisitor attributeVisitor)
Creates a new DebugAttributeVisitor.
|
DebugAttributeVisitor(java.lang.String message,
long maximumTime,
AttributeVisitor attributeVisitor)
Creates a new DebugAttributeVisitor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitAnyAnnotationsAttribute, visitAnyAttribute, visitAnyParameterAnnotationsAttribute, visitAnyTypeAnnotationsAttribute, visitDeprecatedAttribute, visitRuntimeInvisibleAnnotationsAttribute, visitRuntimeInvisibleTypeAnnotationsAttribute, visitRuntimeVisibleAnnotationsAttribute, visitRuntimeVisibleTypeAnnotationsAttribute, visitSignatureAttribute, visitSyntheticAttribute
public DebugAttributeVisitor(AttributeVisitor attributeVisitor)
attributeVisitor
- the AttributeVisitor to which visits will be delegated.public DebugAttributeVisitor(java.lang.String message, AttributeVisitor attributeVisitor)
message
- the message to be printed when the maximum invocation time is exceeded.attributeVisitor
- the AttributeVisitor to which visits will be delegated.public DebugAttributeVisitor(java.lang.String message, long maximumTime, AttributeVisitor attributeVisitor)
message
- the message to be printed when the maximum invocation time is exceeded.maximumTime
- the maximum invocation time.attributeVisitor
- the AttributeVisitor to which visits will be delegated.public void visitLibraryClass(LibraryClass libraryClass)
public void visitUnknownAttribute(Clazz clazz, UnknownAttribute unknownAttribute)
visitUnknownAttribute
in interface AttributeVisitor
public void visitBootstrapMethodsAttribute(Clazz clazz, BootstrapMethodsAttribute bootstrapMethodsAttribute)
visitBootstrapMethodsAttribute
in interface AttributeVisitor
public void visitSourceFileAttribute(Clazz clazz, SourceFileAttribute sourceFileAttribute)
visitSourceFileAttribute
in interface AttributeVisitor
public void visitSourceDirAttribute(Clazz clazz, SourceDirAttribute sourceDirAttribute)
visitSourceDirAttribute
in interface AttributeVisitor
public void visitSourceDebugExtensionAttribute(Clazz clazz, SourceDebugExtensionAttribute sourceDebugExtensionAttribute)
visitSourceDebugExtensionAttribute
in interface AttributeVisitor
public void visitRecordAttribute(Clazz clazz, RecordAttribute recordAttribute)
visitRecordAttribute
in interface AttributeVisitor
public void visitInnerClassesAttribute(Clazz clazz, InnerClassesAttribute innerClassesAttribute)
visitInnerClassesAttribute
in interface AttributeVisitor
public void visitEnclosingMethodAttribute(Clazz clazz, EnclosingMethodAttribute enclosingMethodAttribute)
visitEnclosingMethodAttribute
in interface AttributeVisitor
public void visitNestHostAttribute(Clazz clazz, NestHostAttribute nestHostAttribute)
visitNestHostAttribute
in interface AttributeVisitor
public void visitNestMembersAttribute(Clazz clazz, NestMembersAttribute nestMembersAttribute)
visitNestMembersAttribute
in interface AttributeVisitor
public void visitPermittedSubclassesAttribute(Clazz clazz, PermittedSubclassesAttribute permittedSubclassesAttribute)
visitPermittedSubclassesAttribute
in interface AttributeVisitor
public void visitModuleAttribute(Clazz clazz, ModuleAttribute moduleAttribute)
visitModuleAttribute
in interface AttributeVisitor
public void visitModuleMainClassAttribute(Clazz clazz, ModuleMainClassAttribute moduleMainClassAttribute)
visitModuleMainClassAttribute
in interface AttributeVisitor
public void visitModulePackagesAttribute(Clazz clazz, ModulePackagesAttribute modulePackagesAttribute)
visitModulePackagesAttribute
in interface AttributeVisitor
public void visitDeprecatedAttribute(Clazz clazz, DeprecatedAttribute deprecatedAttribute)
visitDeprecatedAttribute
in interface AttributeVisitor
public void visitDeprecatedAttribute(Clazz clazz, Field field, DeprecatedAttribute deprecatedAttribute)
visitDeprecatedAttribute
in interface AttributeVisitor
public void visitDeprecatedAttribute(Clazz clazz, Method method, DeprecatedAttribute deprecatedAttribute)
visitDeprecatedAttribute
in interface AttributeVisitor
public void visitSyntheticAttribute(Clazz clazz, SyntheticAttribute syntheticAttribute)
visitSyntheticAttribute
in interface AttributeVisitor
public void visitSyntheticAttribute(Clazz clazz, Field field, SyntheticAttribute syntheticAttribute)
visitSyntheticAttribute
in interface AttributeVisitor
public void visitSyntheticAttribute(Clazz clazz, Method method, SyntheticAttribute syntheticAttribute)
visitSyntheticAttribute
in interface AttributeVisitor
public void visitSignatureAttribute(Clazz clazz, SignatureAttribute signatureAttribute)
visitSignatureAttribute
in interface AttributeVisitor
public void visitSignatureAttribute(Clazz clazz, RecordComponentInfo recordComponentInfo, SignatureAttribute signatureAttribute)
visitSignatureAttribute
in interface AttributeVisitor
public void visitSignatureAttribute(Clazz clazz, Field field, SignatureAttribute signatureAttribute)
visitSignatureAttribute
in interface AttributeVisitor
public void visitSignatureAttribute(Clazz clazz, Method method, SignatureAttribute signatureAttribute)
visitSignatureAttribute
in interface AttributeVisitor
public void visitConstantValueAttribute(Clazz clazz, Field field, ConstantValueAttribute constantValueAttribute)
visitConstantValueAttribute
in interface AttributeVisitor
public void visitMethodParametersAttribute(Clazz clazz, Method method, MethodParametersAttribute methodParametersAttribute)
visitMethodParametersAttribute
in interface AttributeVisitor
public void visitExceptionsAttribute(Clazz clazz, Method method, ExceptionsAttribute exceptionsAttribute)
visitExceptionsAttribute
in interface AttributeVisitor
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute)
visitCodeAttribute
in interface AttributeVisitor
public void visitStackMapAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapAttribute stackMapAttribute)
visitStackMapAttribute
in interface AttributeVisitor
public void visitStackMapTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapTableAttribute stackMapTableAttribute)
visitStackMapTableAttribute
in interface AttributeVisitor
public void visitLineNumberTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, LineNumberTableAttribute lineNumberTableAttribute)
visitLineNumberTableAttribute
in interface AttributeVisitor
public void visitLocalVariableTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTableAttribute localVariableTableAttribute)
visitLocalVariableTableAttribute
in interface AttributeVisitor
public void visitLocalVariableTypeTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTypeTableAttribute localVariableTypeTableAttribute)
visitLocalVariableTypeTableAttribute
in interface AttributeVisitor
public void visitRuntimeVisibleAnnotationsAttribute(Clazz clazz, RuntimeVisibleAnnotationsAttribute runtimeVisibleAnnotationsAttribute)
visitRuntimeVisibleAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeVisibleAnnotationsAttribute(Clazz clazz, RecordComponentInfo recordComponentInfo, RuntimeVisibleAnnotationsAttribute runtimeVisibleAnnotationsAttribute)
visitRuntimeVisibleAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeVisibleAnnotationsAttribute(Clazz clazz, Field field, RuntimeVisibleAnnotationsAttribute runtimeVisibleAnnotationsAttribute)
visitRuntimeVisibleAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeVisibleAnnotationsAttribute(Clazz clazz, Method method, RuntimeVisibleAnnotationsAttribute runtimeVisibleAnnotationsAttribute)
visitRuntimeVisibleAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeInvisibleAnnotationsAttribute(Clazz clazz, RuntimeInvisibleAnnotationsAttribute runtimeInvisibleAnnotationsAttribute)
visitRuntimeInvisibleAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeInvisibleAnnotationsAttribute(Clazz clazz, RecordComponentInfo recordComponentInfo, RuntimeInvisibleAnnotationsAttribute runtimeInvisibleAnnotationsAttribute)
visitRuntimeInvisibleAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeInvisibleAnnotationsAttribute(Clazz clazz, Field field, RuntimeInvisibleAnnotationsAttribute runtimeInvisibleAnnotationsAttribute)
visitRuntimeInvisibleAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeInvisibleAnnotationsAttribute(Clazz clazz, Method method, RuntimeInvisibleAnnotationsAttribute runtimeInvisibleAnnotationsAttribute)
visitRuntimeInvisibleAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeVisibleParameterAnnotationsAttribute(Clazz clazz, Method method, RuntimeVisibleParameterAnnotationsAttribute runtimeVisibleParameterAnnotationsAttribute)
visitRuntimeVisibleParameterAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeInvisibleParameterAnnotationsAttribute(Clazz clazz, Method method, RuntimeInvisibleParameterAnnotationsAttribute runtimeInvisibleParameterAnnotationsAttribute)
visitRuntimeInvisibleParameterAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeVisibleTypeAnnotationsAttribute(Clazz clazz, RuntimeVisibleTypeAnnotationsAttribute runtimeVisibleTypeAnnotationsAttribute)
visitRuntimeVisibleTypeAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeVisibleTypeAnnotationsAttribute(Clazz clazz, RecordComponentInfo recordComponentInfo, RuntimeVisibleTypeAnnotationsAttribute runtimeVisibleTypeAnnotationsAttribute)
visitRuntimeVisibleTypeAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeVisibleTypeAnnotationsAttribute(Clazz clazz, Field field, RuntimeVisibleTypeAnnotationsAttribute runtimeVisibleTypeAnnotationsAttribute)
visitRuntimeVisibleTypeAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeVisibleTypeAnnotationsAttribute(Clazz clazz, Method method, RuntimeVisibleTypeAnnotationsAttribute runtimeVisibleTypeAnnotationsAttribute)
visitRuntimeVisibleTypeAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeVisibleTypeAnnotationsAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, RuntimeVisibleTypeAnnotationsAttribute runtimeVisibleTypeAnnotationsAttribute)
visitRuntimeVisibleTypeAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeInvisibleTypeAnnotationsAttribute(Clazz clazz, RuntimeInvisibleTypeAnnotationsAttribute runtimeInvisibleTypeAnnotationsAttribute)
visitRuntimeInvisibleTypeAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeInvisibleTypeAnnotationsAttribute(Clazz clazz, RecordComponentInfo recordComponentInfo, RuntimeInvisibleTypeAnnotationsAttribute runtimeInvisibleTypeAnnotationsAttribute)
visitRuntimeInvisibleTypeAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeInvisibleTypeAnnotationsAttribute(Clazz clazz, Field field, RuntimeInvisibleTypeAnnotationsAttribute runtimeInvisibleTypeAnnotationsAttribute)
visitRuntimeInvisibleTypeAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeInvisibleTypeAnnotationsAttribute(Clazz clazz, Method method, RuntimeInvisibleTypeAnnotationsAttribute runtimeInvisibleTypeAnnotationsAttribute)
visitRuntimeInvisibleTypeAnnotationsAttribute
in interface AttributeVisitor
public void visitRuntimeInvisibleTypeAnnotationsAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, RuntimeInvisibleTypeAnnotationsAttribute runtimeInvisibleTypeAnnotationsAttribute)
visitRuntimeInvisibleTypeAnnotationsAttribute
in interface AttributeVisitor
public void visitAnnotationDefaultAttribute(Clazz clazz, Method method, AnnotationDefaultAttribute annotationDefaultAttribute)
visitAnnotationDefaultAttribute
in interface AttributeVisitor