Examples of TypeCheckError


Examples of org.apache.xalan.xsltc.compiler.util.TypeCheckError

  if (template != null) {
      typeCheckContents(stable);
  }
  else {
      ErrorMsg err = new ErrorMsg(ErrorMsg.TEMPLATE_UNDEF_ERR,_name,this);
      throw new TypeCheckError(err);
  }
  return Type.Void;
    }
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.TypeCheckError

      if (!arg2.identicalTo(tright))
    _right = new CastExpr(_right, arg1);
      // Return the result type for the operator we will use
      return _type = haveType.resultType();
  }
  throw new TypeCheckError(this);
    }
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.TypeCheckError

      break;
  case 1:
      _paramType = _param.typeCheck(stable);
      break;
  default:
      throw new TypeCheckError(this);
  }

  // The argument has to be a node, a node-set or a node reference
  if ((_paramType != Type.NodeSet) &&
      (_paramType != Type.Node) &&
      (_paramType != Type.Reference)) {
      throw new TypeCheckError(this);
  }

  return (_type = Type.String);
    }
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.TypeCheckError

    public Type typeCheck(SymbolTable stable) throws TypeCheckError {
  final int argc = argumentCount();
  if (argc > 1) {
      ErrorMsg err = new ErrorMsg(ErrorMsg.ILLEGAL_ARG_ERR, this);
      throw new TypeCheckError(err);
  }

  if (argc > 0) {
      argument().typeCheck(stable);
  }
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.TypeCheckError

          name, this);
  }
  if ((_ref = resolve(getParser(), stable)) != null) {
      return (_type = _ref.typeCheck(stable));
  }
  throw new TypeCheckError(reportError());
    }
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.TypeCheckError

      if (!arg2.identicalTo(tright))
    _right = new CastExpr(_right, arg1);
      // Return the result type for the operator we will use
      return _type = haveType.resultType();
  }
  throw new TypeCheckError(this);
    }
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.TypeCheckError

      break;
  case 1:
      _paramType = _param.typeCheck(stable);
      break;
  default:
      throw new TypeCheckError(this);
  }

  // The argument has to be a node, a node-set or a node reference
  if ((_paramType != Type.NodeSet) &&
      (_paramType != Type.Node) &&
      (_paramType != Type.Reference)) {
      throw new TypeCheckError(this);
  }

  return (_type = Type.String);
    }
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.TypeCheckError

  if (argument() instanceof LiteralExpr) {
      return _type = Type.Boolean;
  }
  ErrorMsg err = new ErrorMsg(ErrorMsg.NEED_LITERAL_ERR,
            "element-available", this);
  throw new TypeCheckError(err);
    }
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.TypeCheckError

    _left = new CastExpr(_left, arg1);
      }
      return _type = ptype.resultType();
  }

  throw new TypeCheckError(this);
    }
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.TypeCheckError

  // Check that the function was passed exactly two arguments
  if (argumentCount() != 2) {
      ErrorMsg err = new ErrorMsg(ErrorMsg.ILLEGAL_ARG_ERR,
          getName(), this);
      throw new TypeCheckError(err);
  }

  // The first argument must be a String, or cast to a String
  _base = argument(0);
  Type baseType = _base.typeCheck(stable)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.