java.lang.Object
simula.compiler.syntaxClass.SyntaxClass
simula.compiler.syntaxClass.declaration.Declaration
simula.compiler.syntaxClass.declaration.DeclarationScope
simula.compiler.syntaxClass.declaration.BlockDeclaration
simula.compiler.syntaxClass.declaration.ProcedureDeclaration
simula.compiler.syntaxClass.declaration.StandardProcedure
- All Implemented Interfaces:
Externalizable
,Serializable
Standard Procedure.
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.ProcedureDeclaration
myVirtual, parameterList
Fields inherited from class simula.compiler.syntaxClass.declaration.BlockDeclaration
isContextFree, isMainModule, isPreCompiled, labelcodeList, lastLineNumber, statements
Fields inherited from class simula.compiler.syntaxClass.declaration.DeclarationScope
ctBlockLevel, currentRTBlockLevel, declarationList, hasLocalClasses, labelList, rtBlockLevel, sourceBlockLevel
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.StandardProcedure
(DeclarationScope declaredIn, Declaration.Kind kind, Type type, String ident) Create a new StandardProcedure without parameters.StandardProcedure
(DeclarationScope declaredIn, Declaration.Kind kind, Type type, String ident, Parameter... param) Create a new StandardProcedure with parameters. -
Method Summary
Methods inherited from class simula.compiler.syntaxClass.declaration.ProcedureDeclaration
codeProcedureBody, doJavaCoding, expectProcedureDeclaration, findVisibleAttributeMeaning, print, printTree, readExternal, writeExternal
Methods inherited from class simula.compiler.syntaxClass.declaration.BlockDeclaration
addLeadingLabel, codeStatements, codeSTMBody, doCheckLabelList, expectFormalParameterPart, hasLabel, isBlockWithLocalClasses, isQPSystemBlock, printStatementList
Methods inherited from class simula.compiler.syntaxClass.declaration.DeclarationScope
edCTX, edCTX, edJavaClassName, edScopeChain, findLabelMeaning, findMeaning, findProcedure, printDeclarationList, scopeID
Methods inherited from class simula.compiler.syntaxClass.declaration.Declaration
getJavaIdentifier, isCompatibleClasses, modifyIdentifier, parseDeclaration
Methods inherited from class simula.compiler.syntaxClass.SyntaxClass
ASSERT_SEMANTICS_CHECKED, doDeclarationCoding, edIndent, edTreeIndent, IS_SEMANTICS_CHECKED, SET_SEMANTICS_CHECKED, toJavaCode
-
Constructor Details
-
StandardProcedure
StandardProcedure(DeclarationScope declaredIn, Declaration.Kind kind, Type type, String ident) Create a new StandardProcedure without parameters.- Parameters:
declaredIn
- the enclosing scopekind
- the declaration kindtype
- the procedure's typeident
- the procedure identifier
-
StandardProcedure
StandardProcedure(DeclarationScope declaredIn, Declaration.Kind kind, Type type, String ident, Parameter... param) Create a new StandardProcedure with parameters.- Parameters:
declaredIn
- the enclosing scopekind
- the declaration kindtype
- the procuedre's typeident
- the procedure identifierparam
- the parameters
-
StandardProcedure
public StandardProcedure()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 classProcedureDeclaration
-
toString
- Overrides:
toString
in classProcedureDeclaration
-