(* Title: HOL/Bali/Name.thy Author: David von Oheimb
*) subsection‹Java names›
theory Name imports Basis begin
(* cf. 6.5 *) typedecl tnam 🍋‹ordinary type name, i.e. class or interface name› typedecl pname 🍋‹package name› typedecl mname 🍋‹method name› typedecl vname 🍋‹variable or field name› typedecl label 🍋‹label as destination of break or continue›
datatype ename 🍋‹expression name›
= VNam vname
| Res 🍋‹special name to model the return value of methods›
datatype lname 🍋‹names forlocal variables and the This pointer›
= EName ename
| This abbreviation VName :: "vname \ lname" where"VName n == EName (VNam n)"
abbreviation Result :: lname where"Result == EName Res"
datatype xname 🍋‹names of standard exceptions›
= Throwable
| NullPointer | OutOfMemory | ClassCast
| NegArrSize | IndOutBound | ArrStore
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.