CPD Results

The following document contains the results of PMD's CPD 4.1.

Duplications

File Line
org/apache/commons/flatfile/dsl/EntityTokenTypes.java 10
org/apache/commons/flatfile/dsl/EntityTreeParserTokenTypes.java 16
public interface EntityTreeParserTokenTypes {
	int EOF = 1;
	int NULL_TREE_LOOKAHEAD = 3;
	int ROOT = 4;
	int CHECK = 5;
	int VALUE = 6;
	int ALL = 7;
	int FIELD = 8;
	int LENGTH = 9;
	int ARRAY = 10;
	int IMMUTABLE = 11;
	int MAP = 12;
	int PROTOTYPE = 13;
	int OPTIONS = 14;
	int MIN = 15;
	int MAX = 16;
	int OPTION_BLOCK = 17;
	int SEMI = 18;
	int IDENT = 19;
	int ANON = 20;
	int COLON = 21;
	int TYPEREF = 22;
	int LBRACK = 23;
	int RBRACK = 24;
	int CHAR_LITERAL = 25;
	int STAR = 26;
	int STRING_LITERAL = 27;
	int BANG = 28;
	int LPAREN = 29;
	int RPAREN = 30;
	int LCURLY = 31;
	int COMMA = 32;
	int RCURLY = 33;
	int NUMBER = 34;
	int RANGE = 35;
	int ASSIGN = 36;
	int WS = 37;
	int SL_COMMENT = 38;
	int ML_COMMENT = 39;
	int NL = 40;
	int PTIDENT = 41;
	int CHAR_BODY = 42;
	int STRING_BODY = 43;
	int ESC = 44;
	int UNICODE = 45;
	int OCTAL = 46;
	int HEX_DIGIT = 47;
}

File Line
org/apache/commons/flatfile/dsl/EntityLexer.java 579
org/apache/commons/flatfile/dsl/EntityLexer.java 611
		do {
			switch ( LA(1)) {
			case 'a':  case 'b':  case 'c':  case 'd':
			case 'e':  case 'f':  case 'g':  case 'h':
			case 'i':  case 'j':  case 'k':  case 'l':
			case 'm':  case 'n':  case 'o':  case 'p':
			case 'q':  case 'r':  case 's':  case 't':
			case 'u':  case 'v':  case 'w':  case 'x':
			case 'y':  case 'z':
			{
				matchRange('a','z');
				break;
			}
			case 'A':  case 'B':  case 'C':  case 'D':
			case 'E':  case 'F':  case 'G':  case 'H':
			case 'I':  case 'J':  case 'K':  case 'L':
			case 'M':  case 'N':  case 'O':  case 'P':
			case 'Q':  case 'R':  case 'S':  case 'T':
			case 'U':  case 'V':  case 'W':  case 'X':
			case 'Y':  case 'Z':
			{
				matchRange('A','Z');
				break;
			}

File Line
org/apache/commons/flatfile/dsl/EntityParser.java 462
org/apache/commons/flatfile/dsl/EntityParser.java 947
		match(RCURLY);
		{
		if ((_tokenSet_0.member(LA(1))) && (LA(2)==ASSIGN)) {
			entityOptions();
			astFactory.addASTChild(currentAST, returnAST);
		}
		else if ((_tokenSet_1.member(LA(1))) && (_tokenSet_2.member(LA(2)))) {
		}
		else {
			throw new NoViableAltException(LT(1), getFilename());
		}
		
		}
		{
		switch ( LA(1)) {
		case CHAR_LITERAL:
		case STRING_LITERAL:
		{
			value();
			astFactory.addASTChild(currentAST, returnAST);
			break;
		}
		case EOF:
		case IDENT:
		case ANON:
		case COLON:
		case TYPEREF:
		case LBRACK:
		case COMMA:
		case RCURLY:
		{
			break;
		}
		default:
		{
			throw new NoViableAltException(LT(1), getFilename());
		}
		}
		}

File Line
org/apache/commons/flatfile/dsl/EntityLexer.java 966
org/apache/commons/flatfile/dsl/EntityLexer.java 992
			matchRange('4','7');
			c <<= 3; c |= Character.digit(LA(0), 8);
			{
			if (((LA(1) >= '0' && LA(1) <= '7')) && (_tokenSet_0.member(LA(2)))) {
				matchRange('0','7');
				c <<= 3; c |= Character.digit(LA(0), 8);
			}
			else if ((_tokenSet_0.member(LA(1))) && (true)) {
			}
			else {
				throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
			}
			
			}

File Line
org/apache/commons/flatfile/dsl/EntityTreeParser.java 605
org/apache/commons/flatfile/dsl/EntityTreeParser.java 781
			e = getEntityFactory().createField(Integer.parseInt(l.getText()));
			{
			if (_t==null) _t=ASTNULL;
			switch ( _t.getType()) {
			case OPTIONS:
			{
				entityOptions(_t,e);
				_t = _retTree;
				break;
			}
			case 3:
			case VALUE:
			case ALL:
			{
				break;
			}
			default:
			{
				throw new NoViableAltException(_t);
			}
			}
			}
			{
			if (_t==null) _t=ASTNULL;
			switch ( _t.getType()) {
			case VALUE:
			case ALL:
			{
				e=value(_t,e);
				_t = _retTree;
				break;
			}
			case 3:
			{
				break;
			}
			default:
			{
				throw new NoViableAltException(_t);
			}
			}
			}

File Line
org/apache/commons/flatfile/dsl/EntityParser.java 1148
org/apache/commons/flatfile/dsl/EntityTreeParser.java 956
	}
	
	
	public static final String[] _tokenNames = {
		"<0>",
		"EOF",
		"<2>",
		"NULL_TREE_LOOKAHEAD",
		"ROOT",
		"CHECK",
		"VALUE",
		"ALL",
		"FIELD",
		"LENGTH",
		"ARRAY",
		"IMMUTABLE",
		"MAP",
		"PROTOTYPE",
		"OPTIONS",
		"MIN",
		"MAX",
		"OPTION_BLOCK",
		"SEMI",
		"IDENT",
		"ANON",
		"COLON",
		"TYPEREF",
		"LBRACK",
		"RBRACK",
		"CHAR_LITERAL",
		"STAR",
		"STRING_LITERAL",
		"BANG",
		"LPAREN",
		"RPAREN",
		"LCURLY",
		"COMMA",
		"RCURLY",
		"NUMBER",
		"RANGE",
		"ASSIGN",
		"WS",
		"SL_COMMENT",
		"ML_COMMENT",
		"NL",
		"PTIDENT",
		"CHAR_BODY",
		"STRING_BODY",
		"ESC",
		"UNICODE",
		"OCTAL",
		"HEX_DIGIT"
	};