Package com.javacc.core
Class NfaBuilder
- java.lang.Object
-
- com.javacc.parser.Node.Visitor
-
- com.javacc.core.NfaBuilder
-
public class NfaBuilder extends Node.Visitor
A Visitor object that builds an Nfa start and end state from a Regular expression. This is a result of refactoring some legacy code that used all static methods. NB. This class and the visit methods must be public because of the use of reflection. Ideally, it would all be private and package-private.
-
-
Field Summary
-
Fields inherited from class com.javacc.parser.Node.Visitor
visitUnparsedTokens
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisit(CharacterList charList)voidvisit(OneOrMoreRegexp oom)voidvisit(RegexpChoice choice)voidvisit(RegexpRef ref)voidvisit(RegexpSequence sequence)voidvisit(RegexpStringLiteral stringLiteral)voidvisit(RepetitionRange repRange)voidvisit(ZeroOrMoreRegexp zom)voidvisit(ZeroOrOneRegexp zoo)-
Methods inherited from class com.javacc.parser.Node.Visitor
fallback, recurse, visit
-
-
-
-
Method Detail
-
visit
public void visit(CharacterList charList)
-
visit
public void visit(OneOrMoreRegexp oom)
-
visit
public void visit(RegexpChoice choice)
-
visit
public void visit(RegexpStringLiteral stringLiteral)
-
visit
public void visit(ZeroOrMoreRegexp zom)
-
visit
public void visit(ZeroOrOneRegexp zoo)
-
visit
public void visit(RegexpRef ref)
-
visit
public void visit(RegexpSequence sequence)
-
visit
public void visit(RepetitionRange repRange)
-
-