Class Meaning
java.lang.Object
simula.compiler.utilities.Meaning
- Author:
- Øystein Myhre Andersen
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe corresponding declarationWhere it was declaredboolean
True if it was found behind invisibleWhere it was found -
Constructor Summary
ConstructorsConstructorDescriptionMeaning
(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 TypeMethodDescriptionvoid
buildIdentifierAccess
(boolean destination, CodeBuilder codeBuilder) ClassFile Coding Utility: Build identifier access.void
buildQualifiedStaticLink
(CodeBuilder codeBuilder) ClassFile coding utility: Build qualified static link chain.Java coding utility: Edit qualified static link chain.Java coding utility: Edit unqualified static link chain.Returns the constant element or null.Get the inspectedVariable of the enclosing ConnectionBlock or null.Returns the inspected expression or null.boolean
Returns true if it was declared in a ConnectionBlock.toString()
-
Field Details
-
foundBehindInvisible
public 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
-
getTypedInspectedVariable
Returns the inspected expression or null.- Returns:
- the inspected expression or null
-
getInspectedVariable
Get the inspectedVariable of the enclosing ConnectionBlock or null.- Returns:
- the inspectedVariable of the enclosing ConnectionBlock or null.
-
edUnqualifiedStaticLink
Java coding utility: Edit unqualified static link chain.- Returns:
- the resulting string
-
edQualifiedStaticLink
Java coding utility: Edit qualified static link chain.- Returns:
- the resulting string
-
buildQualifiedStaticLink
ClassFile coding utility: Build qualified static link chain.- Parameters:
codeBuilder
- the codeBuilder to use.
-
buildIdentifierAccess
ClassFile Coding Utility: Build identifier access.- Parameters:
destination
- true if destinationcodeBuilder
- the CodeBuilder
-
toString
-