java.lang.Object
simula.compiler.syntaxClass.SyntaxClass
simula.compiler.syntaxClass.ProtectedSpecification
- All Implemented Interfaces:
Externalizable
,Serializable
Protected Specification.
Syntax: protection-specification = hidden identifier-list | protected identifier-list | hidden protected identifier-list | protected hidden identifier-listLink to GitHub: Source File.
- Author:
- Øystein Myhre Andersen
- See Also:
-
Field Summary
Modifier and TypeFieldDescription.(package private) HiddenSpecification
.The protected identifier.Fields inherited from class simula.compiler.syntaxClass.SyntaxClass
lineNumber
-
Constructor Summary
ConstructorDescriptionDefault constructor used by Externalization.ProtectedSpecification
(ClassDeclaration definedIn, String identifier) Create a new ProtectedSpecification. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Perform semantic checking.private Declaration
Returns the Attribute being Protected.private VirtualSpecification
Returns the virtual specification or null.void
printTree
(int indent) Utility print syntax tree method.void
readExternal
(ObjectInput inpt) toString()
void
writeExternal
(ObjectOutput oupt) Methods inherited from class simula.compiler.syntaxClass.SyntaxClass
ASSERT_SEMANTICS_CHECKED, doDeclarationCoding, doJavaCoding, edIndent, edTreeIndent, IS_SEMANTICS_CHECKED, print, SET_SEMANTICS_CHECKED, toJavaCode
-
Field Details
-
identifier
The protected identifier. -
definedIn
.
-
-
Constructor Details
-
ProtectedSpecification
Create a new ProtectedSpecification.- Parameters:
definedIn
- the class it is defined inidentifier
- the protected identifier
-
ProtectedSpecification
public ProtectedSpecification()Default constructor used by Externalization.
-
-
Method Details
-
getAttribute
Returns the Attribute being Protected.- Returns:
- the Attribute being Protected
-
getVirtualSpecification
Returns the virtual specification or null.The Attribute being Protected may be Virtual.
- Returns:
- the virtual specification or null
-
doChecking
public void doChecking()Perform semantic checking.- Overrides:
doChecking
in classSyntaxClass
-
printTree
public void printTree(int indent) Description copied from class:SyntaxClass
Utility print syntax tree method.- Overrides:
printTree
in classSyntaxClass
- Parameters:
indent
- number of spaces leading the lines
-
toString
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-