Module Simula

Class Meaning

java.lang.Object
simula.compiler.utilities.Meaning

public final class Meaning extends Object
Utility class Meaning.

Holding the semantic meaning of an identifier.

Link to GitHub: Source File.

Author:
Øystein Myhre Andersen
  • Field Details

    • foundBehindInvisible

      public final boolean foundBehindInvisible
      True if it was found behind invisible
    • declaredAs

      public final Declaration declaredAs
      The corresponding declaration
    • declaredIn

      public DeclarationScope declaredIn
      Where it was declared
    • foundIn

      public final DeclarationScope foundIn
      Where it was found
  • Constructor Details

    • Meaning

      public Meaning(Declaration declaredAs, DeclarationScope declaredIn, DeclarationScope foundIn, boolean foundBehindInvisible)
      Create a new Meaning.
      Parameters:
      declaredAs - the corresponding declaration
      declaredIn - where it was declared
      foundIn - where it was found
      foundBehindInvisible - true if it was found behind invisible
    • Meaning

      public Meaning(Declaration declaredAs, DeclarationScope declaredIn)
      Create a new Meaning.
      Parameters:
      declaredAs - the corresponding declaration
      declaredIn - where it was declared
  • Method Details

    • getConstant

      public Expression getConstant()
      Returns the constant element or null.
      Returns:
      the constant element or null
    • isConnected

      public boolean isConnected()
      Returns true if it was declared in a ConnectionBlock.
      Returns:
      true if it was declared in a ConnectionBlock
    • getInspectedExpression

      public Expression getInspectedExpression()
      Returns the inspected expression or null.
      Returns:
      the inspected expression or null
    • edUnqualifiedStaticLink

      public String edUnqualifiedStaticLink()
      Coding utility: Edit unqualified static link chain.
      Returns:
      the resulting string
    • edQualifiedStaticLink

      public String edQualifiedStaticLink()
      Coding utility: Edit qualified static link chain.
      Returns:
      the resulting string
    • toString

      public String toString()
      Overrides:
      toString in class Object