private boolean isDatatype( DdlTokenStream tokens,
                                int type ) throws ParsingException {
        // Loop through the registered statement start string arrays and look for exact matches.

        switch (type) {
            case DataTypes.DTYPE_CODE_CHAR_STRING: {
                for (String[] stmts : basicCharStringTypes) {
                    if (tokens.matches(stmts)) return true;
                }
            }
                break;
            case DataTypes.DTYPE_CODE_NCHAR_STRING: {
                for (String[] stmts : basicNationalCharStringTypes) {
                    if (tokens.matches(stmts)) return true;
                }
            }
                break;
            case DataTypes.DTYPE_CODE_BIT_STRING: {
                for (String[] stmts : basicBitStringTypes) {
                    if (tokens.matches(stmts)) return true;
                }
            }
                break;
            case DataTypes.DTYPE_CODE_EXACT_NUMERIC: {
                for (String[] stmts : basicExactNumericTypes) {
                    if (tokens.matches(stmts)) return true;
                }
            }
                break;
            case DataTypes.DTYPE_CODE_APROX_NUMERIC: {
                for (String[] stmts : basicApproxNumericStringTypes) {
                    if (tokens.matches(stmts)) return true;
                }
            }
                break;
            case DataTypes.DTYPE_CODE_DATE_TIME: {
                for (String[] stmts : basicDateTimeTypes) {
                    if (tokens.matches(stmts)) return true;
                }
            }
                break;
            case DataTypes.DTYPE_CODE_MISC: {
                for (String[] stmts : basicMiscTypes) {
                    if (tokens.matches(stmts)) return true;
                }
            }
                break;
        }

        return false;
    }
private boolean isDatatype ( DdlTokenStream tokens , int type ) throws ParsingException { switch ( type ) { case DataTypes . DTYPE_CODE_CHAR_STRING : { for ( String [ ] stmts : basicCharStringTypes ) { if ( tokens . matches ( stmts ) ) return true ; } } break ; case DataTypes . DTYPE_CODE_NCHAR_STRING : { for ( String [ ] stmts : basicNationalCharStringTypes ) { if ( tokens . matches ( stmts ) ) return true ; } } break ; case DataTypes . DTYPE_CODE_BIT_STRING : { for ( String [ ] stmts : basicBitStringTypes ) { if ( tokens . matches ( stmts ) ) return true ; } } break ; case DataTypes . DTYPE_CODE_EXACT_NUMERIC : { for ( String [ ] stmts : basicExactNumericTypes ) { if ( tokens . matches ( stmts ) ) return true ; } } break ; case DataTypes . DTYPE_CODE_APROX_NUMERIC : { for ( String [ ] stmts : basicApproxNumericStringTypes ) { if ( tokens . matches ( stmts ) ) return true ; } } break ; case DataTypes . DTYPE_CODE_DATE_TIME : { for ( String [ ] stmts : basicDateTimeTypes ) { if ( tokens . matches ( stmts ) ) return true ; } } break ; case DataTypes . DTYPE_CODE_MISC : { for ( String [ ] stmts : basicMiscTypes ) { if ( tokens . matches ( stmts ) ) return true ; } } break ; } return false ; }
Method determines if the next set of tokens matches one of the registered data type token sets.

@param tokens
@param type
@return is registered data type
@throws ParsingException