Package edu.cmu.cs.crystal.internal

Examples of edu.cmu.cs.crystal.internal.CrystalRuntimeException


    Class<? extends ICrystalAnnotation> annoClass =
        isMeta ? metaQualNames.get(fullyQualifiedName) : qualNames.get(fullyQualifiedName);

    if (crystalAnnotationClass != null && annoClass != null
        && !(crystalAnnotationClass.isAssignableFrom(annoClass))) {
      throw new CrystalRuntimeException("Can not register " + fullyQualifiedName + " for "
          + crystalAnnotationClass.getCanonicalName() + ", the class "
          + annoClass.getCanonicalName() + " is already registered.");
    }
    if (isMeta)
      metaQualNames.put(fullyQualifiedName, crystalAnnotationClass);
View Full Code Here


      return getVariable(b);
    }
    if(astNode instanceof ThisExpression) {
      return getThisVariable((ThisExpression) astNode);
    }
    throw new CrystalRuntimeException("AST node has no result: " + astNode);
  }
View Full Code Here

   * @throws CrystalRuntimeException if anything went wrong during parsing. This means
   * that the annotation was not actually a multi annotation and should not
   * be marked as such.
   */
  private List<? extends ICrystalAnnotation> getMulti(Annotation baseAnno) {
    CrystalRuntimeException err = new CrystalRuntimeException("Hey! " +
          "If you have a multi annotation, it better have an array of Annotations!" +
          " Found " + baseAnno.toString() + " without an array.");
    List<Expression> realAnnos = null;
    List<ICrystalAnnotation> crystalAnnos = new ArrayList<ICrystalAnnotation>();
   
View Full Code Here

    boolean hasBooleanLabel = false;
    for (EclipseCFGEdge edge : inputs) {
      if (edge.label instanceof BooleanLabel)
        hasBooleanLabel = true;
      else if (hasBooleanLabel)
        throw new CrystalRuntimeException("Node has input labels that are booleans and others: " + node);
     
      if (edge.label.equals(label))
        filteredEdges.add(edge);
    }
   
View Full Code Here

    if (myName != null)
      return myName;
    if (node == null)
      return "";
    if (node.nodeClassForType(node.getNodeType()) == null)
      throw new CrystalRuntimeException("Got a node without a type?!?");
    return node.nodeClassForType(node.getNodeType()).getSimpleName();
  }
View Full Code Here

    Class<? extends ICrystalAnnotation> annoClass =
        isMeta ? metaQualNames.get(fullyQualifiedName) : qualNames.get(fullyQualifiedName);

    if (crystalAnnotationClass != null && annoClass != null
        && !(crystalAnnotationClass.isAssignableFrom(annoClass))) {
      throw new CrystalRuntimeException("Can not register " + fullyQualifiedName + " for "
          + crystalAnnotationClass.getCanonicalName() + ", the class "
          + annoClass.getCanonicalName() + " is already registered.");
    }
    if (isMeta)
      metaQualNames.put(fullyQualifiedName, crystalAnnotationClass);
View Full Code Here

    boolean hasBooleanLabel = false;
    for (EclipseCFGEdge edge : inputs) {
      if (edge.label instanceof BooleanLabel)
        hasBooleanLabel = true;
      else if (hasBooleanLabel)
        throw new CrystalRuntimeException("Node has input labels that are booleans and others: " + node);
     
      if (edge.label.equals(label))
        filteredEdges.add(edge);
    }
   
View Full Code Here

    if (myName != null)
      return myName;
    if (node == null)
      return "";
    if (node.nodeClassForType(node.getNodeType()) == null)
      throw new CrystalRuntimeException("Got a node without a type?!?");
    return node.nodeClassForType(node.getNodeType()).getSimpleName();
  }
View Full Code Here

    if (value.equals(BooleanConstantLE.TRUE))
      return true;
    else if (value.equals(BooleanConstantLE.FALSE))
      return false;
    else
      throw new CrystalRuntimeException("Can not get the constant value as it is not precise.");
  }
View Full Code Here

      return getVariable(b);
    }
    if(astNode instanceof ThisExpression) {
      return getThisVariable((ThisExpression) astNode);
    }
    throw new CrystalRuntimeException("AST node has no result: " + astNode);
  }
View Full Code Here

TOP

Related Classes of edu.cmu.cs.crystal.internal.CrystalRuntimeException

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.