Object

org.opalj.ai.analyses

FieldValuesAnalysis

Related Doc: package analyses

Permalink

object FieldValuesAnalysis

This analysis performs a simple abstract interpretation of all methods of a class to identify fields that are always assigned an object that is a subtype of the field's declared type.

Source
FieldValuesAnalysis.scala
Note

WE IGNORE THOSE FIELDS WHICH SEEMS TO BE ALWAYS NULL. THESE FIELDS ARE OFTEN INITIALZED - AT RUNTIME - BY SOME CODE OUTSIDE THE SCOPE OF "PURE" JAVA BASED ANALYSES. E.G., WE IGNORE THE FOLLOWING FIELDS FROM JAVA 8:

  • [BY NAME] java.util.concurrent.FutureTask{ runner:null // Originaltype: java.lang.Thread }
  • [BY NAME] java.nio.channels.SelectionKey{ attachment:null // Originaltype: java.lang.Object }
  • [BY SETTER] java.lang.System{ err:null // Originaltype: java.io.PrintStream }
  • [BY SETTER] java.lang.System{ in:null // Originaltype: java.io.InputStream }
  • [BY SETTER] java.lang.System{ out:null // Originaltype: java.io.PrintStream }
  • [BY CONSTRUCTOR] java.net.InterfaceAddress{ address:null // Originaltype: java.net.InetAddress } [UPDATE BY NATIVE CODE...] sun.nio.ch.sctp.ResultContainer{ value:null // Originaltype: java.lang.Object } THE FOLLOWING FIELDS ARE "REALLY" NULL in JAVA 8 (1.8.0 - 1.8.0_25):
  • [OK] java.util.TimeZone{ NO_TIMEZONE:null // Originaltype: java.util.TimeZone }
  • [OK - DEPRECATED] java.security.SecureRandom{ digest:null // Originaltype: java.security.MessageDigest } The reason/purpose is not 100% clear:
  • [OK] javax.swing.JList.AccessibleJList.AccessibleJListChild{ accessibleContext:null }
  • [OK] javax.swing.JList.AccessibleJList.AccessibleJListChild{ component:null }
  • [OK] com.sun.corba.se.impl.io.IIOPInputStream{ abortIOException:null }
  • [OK] com.sun.corba.se.impl.orb.ORBImpl{ codeBaseIOR:null }
  • [OK - ACCIDENTIALLY CREATED?] com.sun.org.apache.xpath.internal.jaxp.XPathImpl{ d:null }
  • [OK - LEGACY CODE?] javax.swing.JPopupMenu{ margin:null }
  • [OK - LEGACY CODE?] sun.audio.AudioDevice{ mixer:null }
  • [OK - RESERVED FOR FUTURE USAGE] com.sun.corba.se.impl.corba.ServerRequestImpl{ _ctx:null }
  • [OK - LEGACY CODE?] com.sun.java.swing.plaf.motif.MotifPopupMenuUI{ border:null }
  • [OK - LEGACY CODE?] com.sun.media.sound.SoftSynthesizer{ testline:null }
  • [OK - LEGACY CODE?] com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader{ fSymbolTable:null }
  • [OK - LEGACY CODE] com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl{ _piParams:null }
  • [OK - RSERVED FOR FUTURE USAGE?] com.sun.org.apache.xml.internal.dtm.ref.DTMDefaultBase{ m_namespaceLists:null }
  • [OK - LEGACY CODE?] sun.awt.motif.MFontConfiguration{ fontConfig:null }
  • [OK - LEGACY CODE?] sun.print.PSStreamPrintJob{ reader:null }
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FieldValuesAnalysis
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def doAnalyze(theProject: SomeProject, createDomain: (SomeProject, ClassFile) ⇒ BaseFieldValuesAnalysisDomain, isInterrupted: () ⇒ Boolean): FieldValueInformation

    Permalink
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped