mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-22 08:30:35 +00:00
Added toString.
This commit is contained in:
parent
723c54d549
commit
4893e7b5aa
@ -78,4 +78,16 @@ public class ApplesoftToken {
|
||||
return tokenValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the token as a useful String.
|
||||
*/
|
||||
public String toString() {
|
||||
if (isLineNumber()) {
|
||||
return Integer.toString(getLineNumber());
|
||||
} else if (isToken()) {
|
||||
return getTokenString() + " " + Integer.toHexString(getTokenValue());
|
||||
} else {
|
||||
return getStringValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user