@ SuppressWarnings ( "squid:S1698" ) public boolean matches ( TokenType type , String trigger ) { if ( ! is ( type ) ) { return false ; } if ( trigger == null ) { throw new IllegalArgumentException ( "trigger must not be null" ) ; } return getTrigger ( ) == trigger . intern ( ) ; }
Determines if this token has the given type and trigger .