mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 19:08:07 +02:00

implemented via classes, all descending from system.FpcBaseRecordType (records are also considered to be "related" to system.FpcBaseRecordType on the JVM target) * several routines are auto-generated for all record-classes: apart from a default constructor (if there is none), also clone (which returns a new instance containing a deep copy of the current instance) and deepCopy (which copies all fields of one instance into another one) o added new field "synthetickind" to tprocdef that indicates what kind of synthetically generated method it is (if any), and mark such methods also as "synthetic" in the JVM assembler code o split off the JVM-specific parser code (e.g., to add default constructors) into pjvm.pas git-svn-id: branches/jvmbackend@18450 -
33 lines
872 B
PHP
33 lines
872 B
PHP
{
|
|
This file is part of the Free Pascal run time library.
|
|
Copyright (c) 2011 by Jonas Maebe,
|
|
members of the Free Pascal development team.
|
|
|
|
This file implements support infrastructure for records under the JVM
|
|
|
|
See the file COPYING.FPC, included in this distribution,
|
|
for details about the copyright.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
**********************************************************************}
|
|
|
|
constructor FpcBaseRecordType.create;
|
|
begin
|
|
end;
|
|
|
|
|
|
function FpcBaseRecordType.clone: JLObject;
|
|
begin
|
|
result:=inherited;
|
|
end;
|
|
|
|
|
|
function FpcBaseRecordType.newEmpty: FpcBaseRecordType;
|
|
begin
|
|
result:=FpcBaseRecordType(inherited clone);
|
|
end;
|
|
|