|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
TokenMismatchException.java | - | 0% | 0% | 0% |
|
1 |
package org.codehaus.groovy.syntax;
|
|
2 |
|
|
3 |
public class TokenMismatchException extends TokenException { |
|
4 |
private Token unexpectedToken;
|
|
5 |
private int expectedType; |
|
6 |
|
|
7 | 0 |
public TokenMismatchException(Token token, int expectedType) { |
8 | 0 |
super("Expected token: " + expectedType + " but found: " + token, token); |
9 | 0 |
this.unexpectedToken = token;
|
10 | 0 |
this.expectedType = expectedType;
|
11 |
} |
|
12 |
|
|
13 | 0 |
public Token getUnexpectedToken() {
|
14 | 0 |
return this.unexpectedToken; |
15 |
} |
|
16 |
|
|
17 | 0 |
public int getExpectedType() { |
18 | 0 |
return this.expectedType; |
19 |
} |
|
20 |
} |
|
21 |
|
|