|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 IAtom
public int line()
line
in interface IAtom
public IAtom next()
next
in interface IAtom
public IAtom prev()
prev
in interface IAtom
public java.lang.String text()
text
in interface IAtom
public int type()
type
in interface IAtom
public void setColumn(int column)
setColumn
in interface IAtom
public void setLine(int line)
setLine
in interface IAtom
public void setNext(IAtom next)
setNext
in interface IAtom
public void setPrev(IAtom prev)
setPrev
in interface IAtom
public void setType(int type)
setType
in interface IAtom
public void setText(java.lang.String text)
setText
in interface IAtom
public 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 |