java.lang.Object
simula.compiler.syntaxClass.SyntaxClass
simula.compiler.syntaxClass.declaration.Declaration
simula.compiler.syntaxClass.declaration.SimpleVariableDeclaration
simula.compiler.syntaxClass.declaration.LabelDeclaration
- All Implemented Interfaces:
Externalizable
,Serializable
Label Declaration.
Link to GitHub: Source File.
- Author:
- Øystein Myhre Andersen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class simula.compiler.syntaxClass.declaration.Declaration
Declaration.Kind
-
Field Summary
Fields inherited from class simula.compiler.syntaxClass.declaration.SimpleVariableDeclaration
constantElement
Fields inherited from class simula.compiler.syntaxClass.declaration.Declaration
declarationKind, declaredIn, externalIdent, identifier, isProtected, type
Fields inherited from class simula.compiler.syntaxClass.SyntaxClass
lineNumber
-
Constructor Summary
ConstructorDescriptionDefault constructor used by Externalization.LabelDeclaration
(String identifier) Create a new Label Declaration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Perform semantic checking.void
Output Java code.toString()
Methods inherited from class simula.compiler.syntaxClass.declaration.SimpleVariableDeclaration
doDeclarationCoding, expectSimpleVariable, isConstant, printTree, readExternal, toJavaCode, writeExternal
Methods inherited from class simula.compiler.syntaxClass.declaration.Declaration
getJavaIdentifier, isCompatibleClasses, modifyIdentifier, parseDeclaration
Methods inherited from class simula.compiler.syntaxClass.SyntaxClass
ASSERT_SEMANTICS_CHECKED, edIndent, edTreeIndent, IS_SEMANTICS_CHECKED, print, SET_SEMANTICS_CHECKED
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
-
Field Details
-
index
public int indexThe label index. Set by BlockDeclaration.doCheckLabelList.
-
-
Constructor Details
-
LabelDeclaration
Create a new Label Declaration.- Parameters:
identifier
- label identifier
-
LabelDeclaration
public LabelDeclaration()Default constructor used by Externalization.
-
-
Method Details
-
doChecking
public void doChecking()Description copied from class:SyntaxClass
Perform semantic checking.This must be redefined in every subclass.
- Overrides:
doChecking
in classSimpleVariableDeclaration
-
doJavaCoding
public void doJavaCoding()Description copied from class:SyntaxClass
Output Java code.- Overrides:
doJavaCoding
in classSyntaxClass
-
toString
- Overrides:
toString
in classSimpleVariableDeclaration
-