public static class LocalList.Entry extends java.lang.Object implements java.lang.Comparable<LocalList.Entry>
| Constructor and Description |
|---|
Entry(int address,
LocalList.Disposition disposition,
RegisterSpec spec)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(LocalList.Entry other)
Compares by (in priority order) address, end then start
disposition (variants of end are all consistered
equivalent), and spec.
|
boolean |
equals(java.lang.Object other) |
int |
getAddress()
Gets the address.
|
LocalList.Disposition |
getDisposition()
Gets the disposition.
|
CstString |
getName()
Gets the variable name.
|
int |
getRegister()
Gets the number of the register holding the variable.
|
RegisterSpec |
getRegisterSpec()
Gets the RegisterSpec of the register holding the variable.
|
CstString |
getSignature()
Gets the variable signature.
|
CstType |
getType()
Gets the variable's type.
|
boolean |
isStart()
Gets whether this is a local start.
|
boolean |
matches(LocalList.Entry other)
Returns whether or not this instance matches the spec in
the given instance.
|
boolean |
matches(RegisterSpec otherSpec)
Returns whether or not this instance matches the given spec.
|
java.lang.String |
toString() |
LocalList.Entry |
withDisposition(LocalList.Disposition disposition)
Returns an instance just like this one but with the disposition
set as given.
|
public Entry(int address,
LocalList.Disposition disposition,
RegisterSpec spec)
address - >= 0; addressdisposition - non-null; disposition of the localspec - non-null; register spec representing
the variablepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int compareTo(LocalList.Entry other)
compareTo in interface java.lang.Comparable<LocalList.Entry>other - non-null; entry to compare to-1..1; standard result of comparisonpublic int getAddress()
>= 0; the addresspublic LocalList.Disposition getDisposition()
non-null; the dispositionpublic boolean isStart()
getDisposition() == Disposition.START.true iff this is a startpublic CstString getName()
null-ok; the variable namepublic CstString getSignature()
null-ok; the variable signaturepublic CstType getType()
non-null; the typepublic int getRegister()
>= 0; the number of the register holding
the variablepublic RegisterSpec getRegisterSpec()
non-null; RegisterSpec of the holding register.public boolean matches(RegisterSpec otherSpec)
otherSpec - non-null; the spec in questiontrue iff this instance matches
specpublic boolean matches(LocalList.Entry other)
other - non-null; another entrytrue iff this instance's spec matches
otherpublic LocalList.Entry withDisposition(LocalList.Disposition disposition)
disposition - non-null; the new dispositionnon-null; an appropriately-constructed instanceCopyright © 2020. All Rights Reserved.