Theory Decl
subsection ‹Field, method, interface, and class declarations, whole Java programs
›
theory Decl
imports Term Table
begin
text ‹
improvements:
\begin{itemize}
\item clarification and correction of some aspects of the package/access concept
(Also submitted as bug report to the Java Bug Database:
Bug Id: 4485402 and Bug Id: 4493343
🌐‹http://developer.java.sun.com/developer/bugParade/index.jshtml›
)
\end{itemize}
simplifications:
\begin{itemize}
\item the only field and method modifiers are static and the access modifiers
\item no constructors, which may be simulated by new + suitable methods
\item there is just one global initializer per class, which can simulate all
others
\item no throws clause
\item a void method is replaced by one that returns Unit (of dummy type Void)
\item no interface fields
\item every class has an explicit superclass (unused for Object)
\item the (standard) methods of Object and of standard exceptions are not
specified
\item no main method
\end{itemize}
›
subsection ‹Modifier›
subsubsection ‹Access modifier›