org.mutabilitydetector.checkers
Class InherentTypeMutabilityChecker
java.lang.Object
org.objectweb.asm.ClassVisitor
org.mutabilitydetector.checkers.AsmMutabilityChecker
org.mutabilitydetector.checkers.AbstractMutabilityChecker
org.mutabilitydetector.checkers.InherentTypeMutabilityChecker
public final class InherentTypeMutabilityChecker
- extends AbstractMutabilityChecker
This checker visits types and fields. Types can be visited separately, fields should be visited as part of visiting
an outer type.
The rules of inherent mutability are defined as:
Inherently mutable: Interfaces; Abstract classes
Inherently immutable: Enum types; primitive types ie. boolean, char, byte, short, int, long, float, double
- Author:
- Graham Allan / Grundlefleck at gmail dot com
Fields inherited from class org.objectweb.asm.ClassVisitor |
api, cv |
Methods inherited from class org.mutabilitydetector.checkers.AbstractMutabilityChecker |
checkerResult, createResult, getCodeLocationForException, reasons, result, setResult, visitAnalysisException, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitOuterClass, visitSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InherentTypeMutabilityChecker
public InherentTypeMutabilityChecker()
visit
public void visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
- Overrides:
visit
in class AbstractMutabilityChecker
Copyright © 2013. All Rights Reserved.