Examples of TypeCheckError


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

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

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

  if (ptype instanceof NodeSetType == false) {
      if (ptype instanceof ReferenceType)  {
    _primary = new CastExpr(_primary, Type.NodeSet);
      }
      else {
    throw new TypeCheckError(this);
      }
  }

        // Type check predicates and turn all optimizations off if appropriate
  int n = _predicates.size();
View Full Code Here

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

      */
      else if (ftype instanceof NodeType)  {
    _filterExpr = new CastExpr(_filterExpr, Type.NodeSet);
      }
      else {
    throw new TypeCheckError(this);
      }
  }

  // Wrap single node path in a node set
  final Type ptype = _path.typeCheck(stable);
View Full Code Here

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

  }
  if (_type instanceof NodeSetType||_type instanceof ResultTreeType) {
      typeCheckContents(stable);
      return Type.Void;
  }
  throw new TypeCheckError(this);
    }
View Full Code Here

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

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

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

      tleft = Type.ResultTree; // multiple instances
  }
  if (InternalTypeMap.maps(tleft, _type) != null) {
      return _type;
  }
  throw new TypeCheckError(this)
    }
View Full Code Here

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

      if (!arg2.identicalTo(tright)) {
    _right = new CastExpr(_right, arg1);       
      }
      return _type = ptype.resultType();
  }
  throw new TypeCheckError(this);
    }
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

      if (!arg2.identicalTo(tright)) {
    _right = new CastExpr(_right, arg1);
      }
      return _type = ptype.resultType();
  }
  throw new TypeCheckError(this);
    }
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.