Package org.applecommander.os.pascal
Record Class CodeFile
java.lang.Object
java.lang.Record
org.applecommander.os.pascal.CodeFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomment()Returns the value of thecommentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static CodeFileload(byte[] data) static CodeFileSegment[]segments()Returns the value of thesegmentsrecord component.static booleantest(byte[] data) Perform a light test of these bytes to verify they "look" like an Apple Pascal CodeFile.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DISKINFO_LENGTH
public static final int DISKINFO_LENGTH- See Also:
-
SEGNAME_LENGTH
public static final int SEGNAME_LENGTH- See Also:
-
SEGKIND_LENGTH
public static final int SEGKIND_LENGTH- See Also:
-
TEXTADDR_LENGTH
public static final int TEXTADDR_LENGTH- See Also:
-
SEGINFO_LENGTH
public static final int SEGINFO_LENGTH- See Also:
-
INTRINS_SEGS_LENGTH
public static final int INTRINS_SEGS_LENGTH- See Also:
-
-
Constructor Details
-
CodeFile
Creates an instance of aCodeFilerecord class.- Parameters:
segments- the value for thesegmentsrecord componentcomment- the value for thecommentrecord component
-
-
Method Details
-
load
- Throws:
IOException
-
load
-
test
public static boolean test(byte[] data) Perform a light test of these bytes to verify they "look" like an Apple Pascal CodeFile. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
segments
Returns the value of thesegmentsrecord component.- Returns:
- the value of the
segmentsrecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-