Package sizzle.compiler

Examples of sizzle.compiler.TypeException


   *
   * @return A SizzleType representing the type of the resulting expression
   */
  public SizzleScalar arithmetics(final SizzleType that) {
    // by default, no types are allowed in arithmetic
    throw new TypeException("incorrect type " + this + " for arithmetic with " + that);
  }
View Full Code Here


   *
   * @return A String containing the name of the Java type equivalent to this
   *         Sizzle type
   */
  public String toJavaType() {
    throw new TypeException("no java equivalent for type " + this.toString());
  }
View Full Code Here

   */
  public SizzleScalar getType() {
    if (this.type instanceof SizzleScalar)
      return (SizzleScalar) this.type;

    throw new TypeException("this shouldn't happen");
  }
View Full Code Here

public class SizzleFingerprint extends SizzleScalar {
  /** {@inheritDoc} */
  @Override
  public SizzleScalar arithmetics(final SizzleType that) {
    // no math for fingerprints
    throw new TypeException("incorrect type " + this + " for arithmetic with " + that);
  }
View Full Code Here

TOP

Related Classes of sizzle.compiler.TypeException

Copyright © 2018 www.massapicom. 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.