|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.chalmers.cs.gf.parse.lex.IgnoreLexer
public class IgnoreLexer
A lexer which takes the output from another lexer and removes all WORD tokens not in a given set. String and integer literal tokens are retained.
Constructor Summary | |
---|---|
IgnoreLexer(Lexer lexer,
java.util.Set<java.lang.String> keepWords)
|
Method Summary | |
---|---|
java.util.List<Token> |
lex(java.lang.CharSequence input)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IgnoreLexer(Lexer lexer, java.util.Set<java.lang.String> keepWords)
Method Detail |
---|
public java.util.List<Token> lex(java.lang.CharSequence input)
lex
in interface Lexer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |