@Deprecated
    public DataTypes getType() {
    	DataTypes type = null;
        if(binaryOperators.contains(getOperation())){
            return DataTypes.BOOLEAN;
        }
        if(stringOperators.contains(getOperation())){
            return DataTypes.STRING;
        }
    	if(left() instanceof NumberAST){
    		type = ((NumberAST)left()).getType();
    	}
    	if(right() instanceof NumberAST){
    		type = ((NumberAST)right()).getType();
    	}
    	if(left() instanceof BinOP){
    		type = ((BinOP)left()).getType();
    	}
    	if(right() instanceof BinOP){
    		type = ((BinOP)right()).getType();
    	}
    	return type;
    }