Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package opalj

    OPAL is a Scala-based framework for the static analysis, manipulation and creation of Java bytecode.

    OPAL is a Scala-based framework for the static analysis, manipulation and creation of Java bytecode. OPAL is designed with performance, scalability and adaptability in mind.

    Its main components are:

    • a library (Common) which provides generally useful data-structures and algorithms for static analyses.
    • a framework for implementing lattice based static analyses (Static Analysis Infrastructure)
    • a framework for parsing Java bytecode (Bytecode Infrastructure) that can be used to create arbitrary representations.
    • a library to create a one-to-one in-memory representation of Java bytecode (Bytecode Disassembler).
    • a library to create a representation of Java bytecode that facilitates writing simple static analyses (Bytecode Representation - org.opalj.br).
    • a scalable, easily customizable framework for the abstract interpretation of Java bytecode (Abstract Interpretation Framework - org.opalj.ai).
    • a library to extract dependencies between code elements and to facilitate checking architecture definitions.
    • a library for the lightweight manipulation and creation of Java bytecode (Bytecode Assembler).

    General Design Decisions

    Thread Safety

    Unless explicitly noted, OPAL is thread safe. I.e., the classes defined by OPAL can be considered to be thread safe unless otherwise stated. (For example, it is possible to read and process class files concurrently without explicit synchronization on the client side.)

    No null Values

    Unless explicitly noted, OPAL does not null values I.e., fields that are accessible will never contain null values and methods will never return null. If a method accepts null as a value for a parameter or returns a null value it is always explicitly documented. In general, the behavior of methods that are passed null values is undefined unless explicitly documented.

    No Typecasts for Collections

    For efficiency reasons, OPAL sometimes uses mutable data-structures internally. After construction time, these data-structures are generally represented using their generic interfaces (e.g., scala.collection.{Set,Map}). However, a downcast (e.g., to add/remove elements) is always forbidden as it would effectively prevent thread-safety.

    Assertions

    OPAL makes heavy use of Scala's Assertion Facility to facilitate writing correct code. Hence, for production builds (after thorough testing(!)) it is highly recommend to build OPAL again using -Xdisable-assertions.

    Definition Classes
    org
  • package collection

    OPAL's collection library is primarily designed with high performance in mind.

    Design Goals

    OPAL's collection library is primarily designed with high performance in mind. I.e., all methods provided by the collection library are reasonably optimized. However, providing a very large number of methods is a non-goal. Overall, OPAL's collection library provides:

    • collection classes that are manually specialized for primitive data-types.
    • collection classes that are optimized for particularly small collections of values.
    • collection classes that target special use cases such as using a collection as a workset/worklist.
    • collection classes that offer special methods that minimize the number of steps when compared to general purpose methods.

    Integration With Scala's Collection Library

    Hence, OPAL's collection library complements Scala's default collection library and is not intended to replace it. Integration with Scala's collection library is primarily provided by means of iterators (OPAL's Iterators inherit from Scala's Iterators). Furthermore the companion object of each of OPAL's collection classes generally provides factory methods that facilitate the conversion from Scala collection classes to OPAL collection classes.

    Status

    The collection library is growing. Nevertheless, the existing classes are production ready.

  • package concurrent

    Common constants, factory methods and objects used throughout OPAL when performing concurrent computations.

  • package constraints

    Defines helper values and methods related to modeling constraints.

  • package control

    Defines common control abstractions.

  • package graphs

    This package defines graph algorithms as well as factory methods to describe and compute graphs and trees.

    This package defines graph algorithms as well as factory methods to describe and compute graphs and trees.

    This package supports the following types of graphs:

    1. graphs based on explicitly connected nodes (org.opalj.graphs.Node),
    2. graphs where the relationship between the nodes are encoded externally (org.opalj.graphs.Graph).
  • package io

    Various io-related helper methods and classes.

    Various io-related helper methods and classes.

    Note

    The implementations of the methods rely on Java NIO(2).

  • package log
  • package util

    Utility methods.

  • Answer
  • BinaryArithmeticOperators
  • Empty
  • Failure
  • No
  • NoResult
  • ProjectType
  • ProjectTypes
  • RelationalOperators
  • Result
  • Success
  • UByte
  • UShort
  • UnaryArithmeticOperators
  • Unknown
  • Yes
p

org

opalj

package opalj

OPAL is a Scala-based framework for the static analysis, manipulation and creation of Java bytecode. OPAL is designed with performance, scalability and adaptability in mind.

Its main components are:

  • a library (Common) which provides generally useful data-structures and algorithms for static analyses.
  • a framework for implementing lattice based static analyses (Static Analysis Infrastructure)
  • a framework for parsing Java bytecode (Bytecode Infrastructure) that can be used to create arbitrary representations.
  • a library to create a one-to-one in-memory representation of Java bytecode (Bytecode Disassembler).
  • a library to create a representation of Java bytecode that facilitates writing simple static analyses (Bytecode Representation - org.opalj.br).
  • a scalable, easily customizable framework for the abstract interpretation of Java bytecode (Abstract Interpretation Framework - org.opalj.ai).
  • a library to extract dependencies between code elements and to facilitate checking architecture definitions.
  • a library for the lightweight manipulation and creation of Java bytecode (Bytecode Assembler).

General Design Decisions

Thread Safety

Unless explicitly noted, OPAL is thread safe. I.e., the classes defined by OPAL can be considered to be thread safe unless otherwise stated. (For example, it is possible to read and process class files concurrently without explicit synchronization on the client side.)

No null Values

Unless explicitly noted, OPAL does not null values I.e., fields that are accessible will never contain null values and methods will never return null. If a method accepts null as a value for a parameter or returns a null value it is always explicitly documented. In general, the behavior of methods that are passed null values is undefined unless explicitly documented.

No Typecasts for Collections

For efficiency reasons, OPAL sometimes uses mutable data-structures internally. After construction time, these data-structures are generally represented using their generic interfaces (e.g., scala.collection.{Set,Map}). However, a downcast (e.g., to add/remove elements) is always forbidden as it would effectively prevent thread-safety.

Assertions

OPAL makes heavy use of Scala's Assertion Facility to facilitate writing correct code. Hence, for production builds (after thorough testing(!)) it is highly recommend to build OPAL again using -Xdisable-assertions.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. opalj
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Answer extends AnyRef

    Models a three state answer (Yes, No, Unknown).

  2. final type BinaryArithmeticOperator = opalj.BinaryArithmeticOperators.Value

    The type of the predefined binary arithmetic operators.

    The type of the predefined binary arithmetic operators.

    See org.opalj.BinaryArithmeticOperators for the list of all defined operators.

  3. sealed trait NoResult extends Result[Nothing]
  4. final type ProjectType = opalj.ProjectTypes.Value

    The type of a project.

  5. final type RelationalOperator = opalj.RelationalOperators.Value

    The type of the predefined relational operators.

    The type of the predefined relational operators.

    See org.opalj.RelationalOperators for the list of all defined operators.

  6. sealed trait Result[+T] extends Serializable

    Represents the result of some expression that either (a) succeeded and encapsulates some value, or (b) finished, but has no value - because it was not possible to compute a value using the given/available information - or (c) that failed.

    Represents the result of some expression that either (a) succeeded and encapsulates some value, or (b) finished, but has no value - because it was not possible to compute a value using the given/available information - or (c) that failed.

    Note

    Depending on the context, it may be useful to distinguish between a success that returns an empty collection and a success that has no further information.

  7. case class Success[+T](value: T) extends Result[T] with Product with Serializable

    The computation succeeded and produced a result.

    The computation succeeded and produced a result. In general

  8. final type UByte = Int

    A simple type alias that can be used to communicate that the respective value will/should only take values in the range of unsigned byte values.

  9. final type UShort = Int

    A simple type alias that can be used to communicate that the respective value will/should only take values in the range of unsigned short values.

  10. final type UnaryArithmeticOperator = opalj.UnaryArithmeticOperators.Value

    The type of the predefined unary arithmetic operators.

    The type of the predefined unary arithmetic operators.

    See org.opalj.UnaryArithmeticOperators for the list of all defined operators.

Value Members

  1. val BaseConfig: Config
  2. final val NotRequired: (Any) ⇒ Nothing

    A method that takes an arbitrary parameter and throws an UnknownError that states that an implementation was not required.

  3. final val WEBPAGE: String("http://www.opal-project.de")

    The URL of the webpage of the opal project.

  4. def check(condition: Boolean, message: ⇒ String): Unit

    Non-elidable version of assert; only to be used in a guarded context.

  5. def check(condition: Boolean): Unit

    Non-elidable version of assert; only to be used in a guarded context.

  6. final def i2lBitMask(value: Int): Long

    Converts a given bit mask using an Int value into a bit mask using a Long value.

    Converts a given bit mask using an Int value into a bit mask using a Long value.

    Annotations
    @inline()
    Note

    This is not the same as a type conversion as the "sign-bit" is not treated as such. I.e., after conversion of the Int value -1, the Long value will be 4294967295 (both have the same bit mask: 11111111111111111111111111111111); in other words, the long's sign bit will still be 0.

  7. final def notRequired(): Nothing
  8. object Answer

    Factory for Answers.

  9. object BinaryArithmeticOperators extends Enumeration

    All standard binary arithmetic operators defined in the Java Virtual Machine/Java Language Specification.

    All standard binary arithmetic operators defined in the Java Virtual Machine/Java Language Specification.

    Note

    The type of a value of this enumeration is org.opalj.BinaryArithmeticOperator.

  10. object Empty extends NoResult with Product with Serializable

    The computation finished, but did no produce any results or the result was filtered.

    The computation finished, but did no produce any results or the result was filtered.

    Note

    The precise semantics of succeeded without results is dependent on the semantics of the concrete computation and needs to be defined per use case.

  11. object Failure extends NoResult with Product with Serializable

    The computation failed because of missing/incomplete information.

    The computation failed because of missing/incomplete information.

    Note

    The precise semantics of the computation failed is dependent on the semantics of the concrete computation and needs to be defined per use case.

  12. object No extends Answer with Product with Serializable

    Represents the answer to a question where the answer is No.

  13. object NoResult extends Serializable
  14. object ProjectType

    Common constants related to the project type.

    Common constants related to the project type.

    Note

    The package defines the type ProjectType.

  15. object ProjectTypes extends Enumeration

    The project type specifies the type of the project/the kind of sources which will be analyzed.

  16. object RelationalOperators extends Enumeration

    The standard relational operators defined in the Java Virtual Machine Specification/ Java Language Specification.

  17. object Result extends Serializable

    Defines factory methods for Result objects.

  18. object UByte

    Properties of unsigned byte values.

  19. object UShort

    Properties of unsigned short values.

  20. object UnaryArithmeticOperators extends Enumeration

    All standard unary arithmetic operators defined in the Java Virtual Machine/Java Language Specification.

    All standard unary arithmetic operators defined in the Java Virtual Machine/Java Language Specification.

    Note

    The type of a value of this enumeration is org.opalj.UnaryArithmeticOperator.

  21. object Unknown extends Answer with Product with Serializable

    Represents the answer to a question where the answer is either Unknown or is actually both; that is, Yes and No.

  22. object Yes extends Answer with Product with Serializable

    Represents the answer to a question where the answer is Yes.

Inherited from AnyRef

Inherited from Any

Ungrouped