Class RegexVisitor

All Implemented Interfaces:
TreeVisitor<Void,Void>

public class RegexVisitor extends BaseTypeVisitor<RegexAnnotatedTypeFactory>
A type-checking visitor for the Regex type system.

This visitor does the following:

  1. Allows any String to be passed to Pattern.compile if the Pattern.LITERAL flag is passed.
  2. Checks calls to MatchResult.start, MatchResult.end and MatchResult.group to ensure that a valid group number is passed.
See Also: