|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.prorefactor.refactor.source.Atom
public class Atom
One or more characters in a source file, which could never be split between two tokens. These are copied directly out of Proparse's "scanner". Atoms and SourceFile objects should be considered "immutable". You should only modify the Tokens which reference the Atoms.
| Constructor Summary | |
|---|---|
Atom(java.lang.String text)
You would create your own Atom if you were generating new code to be written to a source file. |
|
| Method Summary | |
|---|---|
int |
column()
|
static IAtom |
getFirst(IAtom position)
Given an IAtom, repeat through prev() until the first is found |
static java.lang.String |
getText(IAtom begin,
IAtom terminator)
Find the text between two IAtoms, inclusive of begin, exclusive of the terminator. |
int |
line()
|
IAtom |
next()
|
IAtom |
prev()
|
void |
setColumn(int column)
|
void |
setLine(int line)
|
void |
setNext(IAtom next)
|
void |
setPrev(IAtom prev)
|
void |
setText(java.lang.String text)
|
void |
setType(int type)
|
java.lang.String |
text()
|
int |
type()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Atom(java.lang.String text)
| Method Detail |
|---|
public int column()
column in interface IAtompublic int line()
line in interface IAtompublic IAtom next()
next in interface IAtompublic IAtom prev()
prev in interface IAtompublic java.lang.String text()
text in interface IAtompublic int type()
type in interface IAtompublic void setColumn(int column)
setColumn in interface IAtompublic void setLine(int line)
setLine in interface IAtompublic void setNext(IAtom next)
setNext in interface IAtompublic void setPrev(IAtom prev)
setPrev in interface IAtompublic void setType(int type)
setType in interface IAtompublic void setText(java.lang.String text)
setText in interface IAtompublic static IAtom getFirst(IAtom position)
public static java.lang.String getText(IAtom begin,
IAtom terminator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||