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 br

    In this representation of Java bytecode references to a Java class file's constant pool and to attributes are replaced by direct references to the corresponding constant pool entries.

    In this representation of Java bytecode references to a Java class file's constant pool and to attributes are replaced by direct references to the corresponding constant pool entries. This facilitates developing analyses and fosters comprehension.

    Based on the fact that indirect references to constant pool entries are resolved and replaced by direct references this representation is called the resolved representation.

    This representation of Java bytecode is considered as OPAL's standard representation for writing Scala based analyses. This representation is engineered such that it facilitates writing analyses that use pattern matching.

    Definition Classes
    opalj
  • package reader

    Defines convenience methods related to reading in class files.

    Defines convenience methods related to reading in class files.

    Definition Classes
    br
  • object SignatureParser

    Parses Java class file signature strings.

    Parses Java class file signature strings.

    Thread-Safety

    Using this object is thread-safe.

    Definition Classes
    reader
  • SignatureParsers

class SignatureParsers extends RegexParsers

Parses Java class file signature strings.

Thread-Safety

As of Scala 2.10/2.11 classes that inherit from (Regex)Parsers are not thread-safe. However, the only class that can create instances of a SignatureParsers is its companion object and that one implements the necessary abstractions for the thread-safe use of SignatureParsers.

Source
SignatureParser.scala
Linear Supertypes
RegexParsers, Parsers, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SignatureParsers
  2. RegexParsers
  3. Parsers
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Elem = Char
    Definition Classes
    RegexParsers → Parsers
  2. case class Error extends NoSuccess with Product with Serializable
    Definition Classes
    Parsers
  3. case class Failure extends NoSuccess with Product with Serializable
    Definition Classes
    Parsers
  4. type Input = Reader[Elem]
    Definition Classes
    Parsers
  5. sealed abstract class NoSuccess extends ParseResult[Nothing]
    Definition Classes
    Parsers
  6. trait OnceParser[+T] extends Parser[T]
    Definition Classes
    Parsers
  7. sealed abstract class ParseResult[+T] extends AnyRef
    Definition Classes
    Parsers
  8. abstract class Parser[+T] extends (Input) => ParseResult[T]
    Definition Classes
    Parsers
  9. case class Success[+T] extends ParseResult[T] with Product with Serializable
    Definition Classes
    Parsers
  10. case class ~[+a, +b] extends Product with Serializable
    Definition Classes
    Parsers

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def OnceParser[T](f: (Input) => ParseResult[T]): Parser[T] with OnceParser[T]
    Definition Classes
    Parsers
  5. def Parser[T](f: (Input) => ParseResult[T]): Parser[T]
    Definition Classes
    Parsers
  6. def accept[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]
    Definition Classes
    Parsers
  7. def accept[ES](es: ES)(implicit f: (ES) => List[Elem]): Parser[List[Elem]]
    Definition Classes
    Parsers
  8. implicit def accept(e: Elem): Parser[Elem]
    Definition Classes
    Parsers
  9. def acceptIf(p: (Elem) => Boolean)(err: (Elem) => String): Parser[Elem]
    Definition Classes
    Parsers
  10. def acceptMatch[U](expected: String, f: PartialFunction[Elem, U]): Parser[U]
    Definition Classes
    Parsers
  11. def acceptSeq[ES](es: ES)(implicit f: (ES) => Iterable[Elem]): Parser[List[Elem]]
    Definition Classes
    Parsers
  12. def arrayTypeSignatureParser: Parser[ArrayTypeSignature]
    Attributes
    protected
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def baseTypeParser: Parser[BaseType]
    Attributes
    protected
  15. def chainl1[T, U](first: => Parser[T], p: => Parser[U], q: => Parser[(T, U) => T]): Parser[T]
    Definition Classes
    Parsers
  16. def chainl1[T](p: => Parser[T], q: => Parser[(T, T) => T]): Parser[T]
    Definition Classes
    Parsers
  17. def chainr1[T, U](p: => Parser[T], q: => Parser[(T, U) => U], combine: (T, U) => U, first: U): Parser[U]
    Definition Classes
    Parsers
  18. def classBoundParser: Parser[Option[FieldTypeSignature]]
    Attributes
    protected
  19. val classSignatureParser: Parser[ClassSignature]
    Attributes
    protected
  20. def classTypeSignatureParser: Parser[ClassTypeSignature]

    From the JVM Specification

    From the JVM Specification

    A class type signature gives complete type information for a class or interface type. The class type signature must be formulated such that it can be reliably mapped to the binary name of the class it denotes by erasing any type arguments and converting each ‘.’ character in the signature to a ‘$’ character.

    Attributes
    protected
  21. def classTypeSignatureSuffixParser: Parser[SimpleClassTypeSignature]
    Attributes
    protected
  22. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  23. def commit[T](p: => Parser[T]): Parser[T]
    Definition Classes
    Parsers
  24. def elem(e: Elem): Parser[Elem]
    Definition Classes
    Parsers
  25. def elem(kind: String, p: (Elem) => Boolean): Parser[Elem]
    Definition Classes
    Parsers
  26. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  28. def err(msg: String): Parser[Nothing]
    Definition Classes
    Parsers
  29. def failure(msg: String): Parser[Nothing]
    Definition Classes
    Parsers
  30. val fieldTypeSignatureParser: Parser[FieldTypeSignature]
    Attributes
    protected
  31. def formalTypeParameterParser: Parser[FormalTypeParameter]
    Attributes
    protected
  32. def formalTypeParametersParser: Parser[List[FormalTypeParameter]]
    Attributes
    protected
  33. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  34. def guard[T](p: => Parser[T]): Parser[T]
    Definition Classes
    Parsers
  35. def handleWhiteSpace(source: CharSequence, offset: Int): Int
    Attributes
    protected
    Definition Classes
    RegexParsers
  36. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  37. val identifierParser: Parser[String]
    Attributes
    protected
  38. def interfaceBoundParser: Parser[FieldTypeSignature]
    Attributes
    protected
  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. implicit def literal(s: String): Parser[String]
    Definition Classes
    RegexParsers
  41. def log[T](p: => Parser[T])(name: String): Parser[T]
    Definition Classes
    Parsers
  42. val methodTypeSignatureParser: Parser[MethodTypeSignature]
    Attributes
    protected
  43. def mkList[T]: (~[T, List[T]]) => List[T]
    Definition Classes
    Parsers
  44. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. def not[T](p: => Parser[T]): Parser[Unit]
    Definition Classes
    Parsers
  46. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  47. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  48. def opt[T](p: => Parser[T]): Parser[Option[T]]
    Definition Classes
    Parsers
  49. def packageSpecifierParser: Parser[String]
    Attributes
    protected
  50. def parse[T](p: Parser[T], in: Reader): ParseResult[T]
    Definition Classes
    RegexParsers
  51. def parse[T](p: Parser[T], in: CharSequence): ParseResult[T]
    Definition Classes
    RegexParsers
  52. def parse[T](p: Parser[T], in: Reader[Char]): ParseResult[T]
    Definition Classes
    RegexParsers
  53. def parseAll[T](p: Parser[T], in: CharSequence): ParseResult[T]
    Definition Classes
    RegexParsers
  54. def parseAll[T](p: Parser[T], in: Reader): ParseResult[T]
    Definition Classes
    RegexParsers
  55. def parseAll[T](p: Parser[T], in: Reader[Char]): ParseResult[T]
    Definition Classes
    RegexParsers
  56. def parseClassSignature(signature: String): ClassSignature
  57. def parseFieldTypeSignature(signature: String): FieldTypeSignature
  58. def parseMethodTypeSignature(signature: String): MethodTypeSignature
  59. def phrase[T](p: Parser[T]): Parser[T]
    Definition Classes
    RegexParsers → Parsers
  60. def positioned[T <: Positional](p: => Parser[T]): Parser[T]
    Definition Classes
    RegexParsers → Parsers
  61. implicit def regex(r: Regex): Parser[String]
    Definition Classes
    RegexParsers
  62. def rep[T](p: => Parser[T]): Parser[List[T]]
    Definition Classes
    Parsers
  63. def rep1[T](first: => Parser[T], p0: => Parser[T]): Parser[List[T]]
    Definition Classes
    Parsers
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The p0 call-by-name arguments is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.

  64. def rep1[T](p: => Parser[T]): Parser[List[T]]
    Definition Classes
    Parsers
  65. def rep1sep[T](p: => Parser[T], q: => Parser[Any]): Parser[List[T]]
    Definition Classes
    Parsers
  66. def repN[T](num: Int, p: => Parser[T]): Parser[List[T]]
    Definition Classes
    Parsers
  67. def repsep[T](p: => Parser[T], q: => Parser[Any]): Parser[List[T]]
    Definition Classes
    Parsers
  68. def returnTypeParser: Parser[ReturnTypeSignature]
    Attributes
    protected
  69. def simpleClassTypeSignatureParser: Parser[SimpleClassTypeSignature]
    Attributes
    protected
  70. def skipWhitespace: Boolean
    Definition Classes
    RegexParsers
  71. def success[T](v: T): Parser[T]
    Definition Classes
    Parsers
  72. def superclassSignatureParser: Parser[ClassTypeSignature]
    Attributes
    protected
  73. def superinterfaceSignatureParser: Parser[ClassTypeSignature]
    Attributes
    protected
  74. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  75. def throwsSignatureParser: Parser[ThrowsSignature]
    Attributes
    protected
  76. def toString(): String
    Definition Classes
    AnyRef → Any
  77. def typeArgumentParser: Parser[TypeArgument]
    Attributes
    protected
  78. def typeArgumentsParser: Parser[List[TypeArgument]]
    Attributes
    protected
  79. def typeSignatureParser: Parser[TypeSignature]
    Attributes
    protected
  80. def typeVariableSignatureParser: Parser[TypeVariableSignature]
    Attributes
    protected
  81. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  82. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  83. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  84. val whiteSpace: Regex
    Attributes
    protected
    Definition Classes
    RegexParsers
  85. def wildcardIndicatorParser: Parser[VarianceIndicator]
    Attributes
    protected

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from RegexParsers

Inherited from Parsers

Inherited from AnyRef

Inherited from Any

Ungrouped