java.lang.Object
simula.compiler.AttributeFileIO
Simula attribute file input/output.
Link to GitHub: Source File.
- Author:
- Øystein Myhre Andersen
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
listAttributeFile
(File aFile) List an attribute file.static Type
readAttributeFile
(InputStream inputStream, File file, DeclarationList declarationList) Read an attribute file.private void
write
(BlockDeclaration module) Write a module's attribute file.(package private) static void
write
(ProgramModule program) Write an attribute file.
-
Field Details
-
version
The Simula version.- See Also:
-
attributeFile
The attribute file.
-
-
Constructor Details
-
AttributeFileIO
Create a new AttributeFileIO.- Parameters:
aFile
- the attributeFile
-
-
Method Details
-
write
Write an attribute file.- Parameters:
program
- the program module- Throws:
IOException
- if an output operation fail
-
readAttributeFile
public static Type readAttributeFile(InputStream inputStream, File file, DeclarationList declarationList) throws IOException, ClassNotFoundException Read an attribute file.- Parameters:
inputStream
- argumentfile
- argumentdeclarationList
- argument- Returns:
- the module type
- Throws:
IOException
- if an input operation failClassNotFoundException
- if a class cast fail
-
write
Write a module's attribute file.- Parameters:
module
- the module- Throws:
IOException
- if an io-error occurs
-
listAttributeFile
List an attribute file.- Parameters:
aFile
- the attributeFile- Throws:
IOException
- if an io-error occursClassNotFoundException
- if readObject fails
-