Theory SystemClasses

Up to index of Isabelle/HOL/Jinja

theory SystemClasses
imports Exceptions
(*  Title:      HOL/MicroJava/J/SystemClasses.thy

Author: Gerwin Klein
Copyright 2002 Technische Universitaet Muenchen
*)


header {* \isaheader{System Classes} *}

theory SystemClasses
imports Decl Exceptions
begin

text {*
This theory provides definitions for the @{text Object} class,
and the system exceptions.
*}


definition ObjectC :: "'m cdecl"
where
"ObjectC ≡ (Object, (undefined,[],[]))"

definition NullPointerC :: "'m cdecl"
where
"NullPointerC ≡ (NullPointer, (Object,[],[]))"

definition ClassCastC :: "'m cdecl"
where
"ClassCastC ≡ (ClassCast, (Object,[],[]))"

definition OutOfMemoryC :: "'m cdecl"
where
"OutOfMemoryC ≡ (OutOfMemory, (Object,[],[]))"

definition SystemClasses :: "'m cdecl list"
where
"SystemClasses ≡ [ObjectC, NullPointerC, ClassCastC, OutOfMemoryC]"

end