org.mutabilitydetector.checkers
Class InherentTypeMutabilityChecker

java.lang.Object
  extended by org.objectweb.asm.ClassVisitor
      extended by org.mutabilitydetector.checkers.AsmMutabilityChecker
          extended by org.mutabilitydetector.checkers.AbstractMutabilityChecker
              extended by 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

Field Summary
 
Fields inherited from class org.mutabilitydetector.checkers.AbstractMutabilityChecker
ownerClass, reasons
 
Fields inherited from class org.objectweb.asm.ClassVisitor
api, cv
 
Constructor Summary
InherentTypeMutabilityChecker()
           
 
Method Summary
 void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
           
 
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
 

Constructor Detail

InherentTypeMutabilityChecker

public InherentTypeMutabilityChecker()
Method Detail

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.