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 boolean foundBehindInvisible
      True if it was found behind invisible
    • declaredAs

      public Declaration declaredAs
      The corresponding declaration
    • declaredIn

      public DeclarationScope declaredIn
      Where it was declared
    • foundIn

      public 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
    • getTypedInspectedVariable

      public Expression getTypedInspectedVariable()
      Returns the inspected expression or null.
      Returns:
      the inspected expression or null
    • getInspectedVariable

      public VariableExpression getInspectedVariable()
      Get the inspectedVariable of the enclosing ConnectionBlock or null.
      Returns:
      the inspectedVariable of the enclosing ConnectionBlock or null.
    • edUnqualifiedStaticLink

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

      public String edQualifiedStaticLink()
      Java coding utility: Edit qualified static link chain.
      Returns:
      the resulting string
    • buildQualifiedStaticLink

      public void buildQualifiedStaticLink(CodeBuilder codeBuilder)
      ClassFile coding utility: Build qualified static link chain.
      Parameters:
      codeBuilder - the codeBuilder to use.
    • buildIdentifierAccess

      public void buildIdentifierAccess(boolean destination, CodeBuilder codeBuilder)
      ClassFile Coding Utility: Build identifier access.
      Parameters:
      destination - true if destination
      codeBuilder - the CodeBuilder
    • toString

      public String toString()
      Overrides:
      toString in class Object