|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.colorizer.CodeReader
public class CodeReader
Constructor Summary | |
---|---|
CodeReader(Reader reader)
|
|
CodeReader(String code)
|
Method Summary | |
---|---|
void |
close()
|
Object |
getVariable(Object key)
Get a stateful variable. |
Object |
getVariable(Object key,
Object defaultValue)
Get a stateful variable. |
Map |
getVariables()
All stateful variables |
int |
lastChar()
|
int |
lastChar(int index)
|
void |
mark(int readAheadLimit)
|
int |
peek()
|
char[] |
peek(int index)
|
String |
peekTo(EndTokenMatcher matcher)
|
protected String |
peekTo(EndTokenMatcher matcher,
int lookAheadLimit)
|
int |
pop()
|
String |
popTo(EndTokenMatcher matcher)
|
void |
setVariable(Object key,
Object value)
Save a stateful variable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CodeReader(Reader reader)
public CodeReader(String code)
Method Detail |
---|
public final void mark(int readAheadLimit) throws IOException
IOException
public final int lastChar()
public final int peek()
public final int pop()
public String popTo(EndTokenMatcher matcher)
public String peekTo(EndTokenMatcher matcher)
protected String peekTo(EndTokenMatcher matcher, int lookAheadLimit)
public void close()
public char[] peek(int index)
public int lastChar(int index)
public void setVariable(Object key, Object value)
key
- can NOT be nullvalue
- can be nullpublic Object getVariable(Object key)
public Object getVariable(Object key, Object defaultValue)
public Map getVariables()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |