Package org.applecommander.os.pascal
Record Class PCodeProcedure
java.lang.Object
java.lang.Record
org.applecommander.os.pascal.PCodeProcedure
public record PCodeProcedure(int procNum, int lexLevel, int enterIC, int exitIC, int paramsSize, int dataSize, int jumpTable, DataBuffer data)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPCodeProcedure(int procNum, int lexLevel, int enterIC, int exitIC, int paramsSize, int dataSize, int jumpTable, DataBuffer data) Creates an instance of aPCodeProcedurerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]data()Returns the value of thedatarecord component.intdataSize()Returns the value of thedataSizerecord component.intenterIC()Returns the value of theenterICrecord component.final booleanIndicates whether some other object is "equal to" this one.intexitIC()Returns the value of theexitICrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thejumpTablerecord component.intlexLevel()Returns the value of thelexLevelrecord component.static PCodeProcedureload(DataBuffer data, int attrs) intReturns the value of theparamsSizerecord component.intprocNum()Returns the value of theprocNumrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PCodeProcedure
public PCodeProcedure(int procNum, int lexLevel, int enterIC, int exitIC, int paramsSize, int dataSize, int jumpTable, DataBuffer data) Creates an instance of aPCodeProcedurerecord class.- Parameters:
procNum- the value for theprocNumrecord componentlexLevel- the value for thelexLevelrecord componententerIC- the value for theenterICrecord componentexitIC- the value for theexitICrecord componentparamsSize- the value for theparamsSizerecord componentdataSize- the value for thedataSizerecord componentjumpTable- the value for thejumpTablerecord componentdata- the value for thedatarecord component
-
-
Method Details
-
codeBytes
public byte[] codeBytes() -
load
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
procNum
public int procNum()Returns the value of theprocNumrecord component.- Returns:
- the value of the
procNumrecord component
-
lexLevel
public int lexLevel()Returns the value of thelexLevelrecord component.- Returns:
- the value of the
lexLevelrecord component
-
enterIC
public int enterIC()Returns the value of theenterICrecord component.- Returns:
- the value of the
enterICrecord component
-
exitIC
public int exitIC()Returns the value of theexitICrecord component.- Returns:
- the value of the
exitICrecord component
-
paramsSize
public int paramsSize()Returns the value of theparamsSizerecord component.- Returns:
- the value of the
paramsSizerecord component
-
dataSize
public int dataSize()Returns the value of thedataSizerecord component.- Returns:
- the value of the
dataSizerecord component
-
jumpTable
public int jumpTable()Returns the value of thejumpTablerecord component.- Returns:
- the value of the
jumpTablerecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-