|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.pal.palString
public class palString
A String with positional information
Constructor Summary | |
---|---|
palString(String s)
Create a new string |
Method Summary | |
---|---|
void |
backChar()
Move the string pointer back one character |
char |
getChar()
Get the character at the current position in the string |
char |
getChar(int n)
Get the character at a set position in the string |
int |
getDigit()
Get the Digit Flag |
int |
getFlag()
Get the Status flag |
char |
getlastChar()
Get the last character |
char |
getNextChar()
Get the next character of the string |
int |
getPos()
Get the current character position |
String |
getString()
Get the string |
void |
incrChar()
Move the string pointer forward one character |
int |
length()
Get the length of the string |
void |
setDigit(int n)
Set the Digit Flag |
void |
setFlag(int n)
Set the Status flag |
void |
setPos(int n)
Set the current character position |
String |
toString()
Get the string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public palString(String s)
s
- The text to storeMethod Detail |
---|
public String getString()
public char getNextChar()
public void backChar()
public void incrChar()
public char getChar(int n)
n
- The position of the character to get
public char getChar()
public char getlastChar()
public int getPos()
public void setPos(int n)
n
- The current character position (starting at 1)public void setDigit(int n)
n
- The digit flagpublic int getDigit()
public void setFlag(int n)
n
- Flag valuepublic int getFlag()
public int length()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |