java.lang.Object
simula.compiler.utilities.Meaning
Utility class Meaning.
Holding the semantic meaning of an identifier.
Link to GitHub: Source File.
- Author:
- Øystein Myhre Andersen
-
Field Summary
Modifier and TypeFieldDescriptionfinal Declaration
The corresponding declarationWhere it was declaredfinal boolean
True if it was found behind invisiblefinal DeclarationScope
Where it was found -
Constructor Summary
ConstructorDescriptionMeaning
(Declaration declaredAs, DeclarationScope declaredIn) Create a new Meaning.Meaning
(Declaration declaredAs, DeclarationScope declaredIn, DeclarationScope foundIn, boolean foundBehindInvisible) Create a new Meaning. -
Method Summary
Modifier and TypeMethodDescriptionCoding utility: Edit qualified static link chain.Coding utility: Edit unqualified static link chain.Returns the constant element or null.Returns the inspected expression or null.boolean
Returns true if it was declared in a ConnectionBlock.toString()
-
Field Details
-
foundBehindInvisible
public final boolean foundBehindInvisibleTrue if it was found behind invisible -
declaredAs
The corresponding declaration -
declaredIn
Where it was declared -
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 declarationdeclaredIn
- where it was declaredfoundIn
- where it was foundfoundBehindInvisible
- true if it was found behind invisible
-
Meaning
Create a new Meaning.- Parameters:
declaredAs
- the corresponding declarationdeclaredIn
- where it was declared
-
-
Method Details
-
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
Returns the inspected expression or null.- Returns:
- the inspected expression or null
-
edUnqualifiedStaticLink
Coding utility: Edit unqualified static link chain.- Returns:
- the resulting string
-
edQualifiedStaticLink
Coding utility: Edit qualified static link chain.- Returns:
- the resulting string
-
toString
-