Class

org.opalj.tac

SimpleVar

Related Doc: package tac

Permalink

case class SimpleVar(id: Int, cTpe: ComputationalType) extends IdBasedVar with Product with Serializable

The id determines the name of the local variable and is equivalent to "the position of the value on the operand stack" or "-1-(the accessed register)". If the id is Int.MinValue then the variable is an intermediate variable that was artificially generated.

Linear Supertypes
Serializable, Serializable, Product, Equals, IdBasedVar, Var[IdBasedVar], ValueExpr[IdBasedVar], Expr[IdBasedVar], ASTNode[IdBasedVar], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleVar
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. IdBasedVar
  7. Var
  8. ValueExpr
  9. Expr
  10. ASTNode
  11. AnyRef
  12. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimpleVar(id: Int, cTpe: ComputationalType)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from SimpleVar to any2stringadd[SimpleVar] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (SimpleVar, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from SimpleVar to ArrowAssoc[SimpleVar] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  7. final def astID: Int

    Permalink

    Each type of node is assigned a different id to make it easily possible to do a switch over all nodes.

    Each type of node is assigned a different id to make it easily possible to do a switch over all nodes.

    Definition Classes
    VarASTNode
  8. val cTpe: ComputationalType

    Permalink

    The computational type of the underlying value.

    The computational type of the underlying value. I.e., an approximation of the type of the underlying value. It is the best type information directly available. The precision of the type information depends on the number of pre-/post-processing steps that are done.

    Definition Classes
    SimpleVarExpr
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def ensuring(cond: (SimpleVar) ⇒ Boolean, msg: ⇒ Any): SimpleVar

    Permalink
    Implicit information
    This member is added by an implicit conversion from SimpleVar to Ensuring[SimpleVar] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (SimpleVar) ⇒ Boolean): SimpleVar

    Permalink
    Implicit information
    This member is added by an implicit conversion from SimpleVar to Ensuring[SimpleVar] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): SimpleVar

    Permalink
    Implicit information
    This member is added by an implicit conversion from SimpleVar to Ensuring[SimpleVar] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): SimpleVar

    Permalink
    Implicit information
    This member is added by an implicit conversion from SimpleVar to Ensuring[SimpleVar] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from SimpleVar to StringFormat[SimpleVar] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def hasSameLocation(that: IdBasedVar): Boolean

    Permalink

    returns

    true if this variable and the given variable use the same location. Compared to equals this test does not consider the computational type.

    Definition Classes
    IdBasedVar
  19. val id: Int

    Permalink
    Definition Classes
    SimpleVarIdBasedVar
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. final def isSideEffectFree: Boolean

    Permalink

    true if the expression is GUARANTEED to have no externally observable effect if it is not executed.

    true if the expression is GUARANTEED to have no externally observable effect if it is not executed. Sideeffect free instructions can be removed if the result of the evaluation of the expression is not used. For those expressions, which may result in an exception it has to be guaranteed that the exception is NEVER thrown. For example, a div instruction is sideeffect free if it is (statically) known that the divisor is always not equal to zero; otherwise, even if the result value is not used, the expression is not (potentially) side effect free.

    returns

    true if the expression is GUARENTEED to have no side effect other than wasting some CPU cycles if it is not executed.

    Definition Classes
    IdBasedVarExpr
  22. def name: String

    Permalink

    A human readable name of the local variable.

    A human readable name of the local variable.

    Definition Classes
    IdBasedVarVar
  23. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def updated(cTpe: ComputationalType): SimpleVar

    Permalink

    Creates a new variable that has the same identifier etc.

    Creates a new variable that has the same identifier etc. but an updated computational type.

    This operation is not supported for local variables!

    Definition Classes
    IdBasedVar
  28. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def [B](y: B): (SimpleVar, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from SimpleVar to ArrowAssoc[SimpleVar] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from IdBasedVar

Inherited from Var[IdBasedVar]

Inherited from ValueExpr[IdBasedVar]

Inherited from Expr[IdBasedVar]

Inherited from ASTNode[IdBasedVar]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from SimpleVar to any2stringadd[SimpleVar]

Inherited by implicit conversion StringFormat from SimpleVar to StringFormat[SimpleVar]

Inherited by implicit conversion Ensuring from SimpleVar to Ensuring[SimpleVar]

Inherited by implicit conversion ArrowAssoc from SimpleVar to ArrowAssoc[SimpleVar]

Ungrouped