Examples of ExecutableElement


Examples of ch.tatool.core.element.ExecutableElement

      changeLevelExecutable.addContent(Region.CENTER, textPanel);
      changeLevelExecutable.setDisplayDuration(duration);
      Misc.getOutcomeProperty().setValue(changeLevelExecutable, ExecutionOutcome.SKIP);
      TemporaryElementSupport support = TemporaryElementSupportUtil.getInstance().findTemporaryElementSupport(context);
      if (support != null) {
        ExecutableElement element = new ExecutableElement(changeLevelExecutable);
        support.addTemporaryElement(element);
      }
     
      // don't pause before executing the temporary element
      PauseHandlerUtil.setCurrentInterElementPauseDuration(context, 0L);
View Full Code Here

Examples of com.google.dart.engine.element.ExecutableElement

   *
   * @return the parameter element representing the parameter to which the value of the right
   *         operand will be bound
   */
  protected ParameterElement getPropagatedParameterElementForRightHandSide() {
    ExecutableElement executableElement = null;
    if (propagatedElement != null) {
      executableElement = propagatedElement;
    } else {
      if (leftHandSide instanceof Identifier) {
        Identifier identifier = (Identifier) leftHandSide;
        Element leftElement = identifier.getPropagatedElement();
        if (leftElement instanceof ExecutableElement) {
          executableElement = (ExecutableElement) leftElement;
        }
      }
      if (leftHandSide instanceof PropertyAccess) {
        SimpleIdentifier identifier = ((PropertyAccess) leftHandSide).getPropertyName();
        Element leftElement = identifier.getPropagatedElement();
        if (leftElement instanceof ExecutableElement) {
          executableElement = (ExecutableElement) leftElement;
        }
      }
    }
    if (executableElement == null) {
      return null;
    }
    ParameterElement[] parameters = executableElement.getParameters();
    if (parameters.length < 1) {
      return null;
    }
    return parameters[0];
  }
View Full Code Here

Examples of com.google.dart.engine.element.ExecutableElement

   *
   * @return the parameter element representing the parameter to which the value of the right
   *         operand will be bound
   */
  protected ParameterElement getStaticParameterElementForRightHandSide() {
    ExecutableElement executableElement = null;
    if (staticElement != null) {
      executableElement = staticElement;
    } else {
      if (leftHandSide instanceof Identifier) {
        Element leftElement = ((Identifier) leftHandSide).getStaticElement();
        if (leftElement instanceof ExecutableElement) {
          executableElement = (ExecutableElement) leftElement;
        }
      }
      if (leftHandSide instanceof PropertyAccess) {
        Element leftElement = ((PropertyAccess) leftHandSide).getPropertyName().getStaticElement();
        if (leftElement instanceof ExecutableElement) {
          executableElement = (ExecutableElement) leftElement;
        }
      }
    }
    if (executableElement == null) {
      return null;
    }
    ParameterElement[] parameters = executableElement.getParameters();
    if (parameters.length < 1) {
      return null;
    }
    return parameters[0];
  }
View Full Code Here

Examples of com.google.dart.engine.element.ExecutableElement

   * performed, then {@code null} will be returned.
   *
   * @return the best element available for this function
   */
  public ExecutableElement getBestElement() {
    ExecutableElement element = getPropagatedElement();
    if (element == null) {
      element = getStaticElement();
    }
    return element;
  }
View Full Code Here

Examples of com.google.dart.engine.element.ExecutableElement

    return super.visitIndexExpression(node);
  }

  @Override
  public Void visitMethodDeclaration(MethodDeclaration node) {
    ExecutableElement element = node.getElement();
    enterScope(element);
    try {
      return super.visitMethodDeclaration(node);
    } finally {
      exitScope();
View Full Code Here

Examples of com.google.dart.engine.element.ExecutableElement

      }
      FunctionScope functionScope = new FunctionScope(scope, element);
      functionScope.defineParameters();
      scope = functionScope;
    } else if (node instanceof FunctionDeclaration) {
      ExecutableElement element = ((FunctionDeclaration) node).getElement();
      if (element == null) {
        throw new AnalysisException("Cannot build a scope for an unresolved function");
      }
      FunctionScope functionScope = new FunctionScope(scope, element);
      functionScope.defineParameters();
      scope = functionScope;
    } else if (node instanceof FunctionTypeAlias) {
      scope = new FunctionTypeScope(scope, ((FunctionTypeAlias) node).getElement());
    } else if (node instanceof MethodDeclaration) {
      ExecutableElement element = ((MethodDeclaration) node).getElement();
      if (element == null) {
        throw new AnalysisException("Cannot build a scope for an unresolved method");
      }
      FunctionScope functionScope = new FunctionScope(scope, element);
      functionScope.defineParameters();
View Full Code Here

Examples of com.google.dart.engine.element.ExecutableElement

  public BoolState equalEqual(InstanceState rightOperand) throws EvaluationException {
    if (element == null) {
      return BoolState.UNKNOWN_VALUE;
    }
    if (rightOperand instanceof FunctionState) {
      ExecutableElement rightElement = ((FunctionState) rightOperand).element;
      if (rightElement == null) {
        return BoolState.UNKNOWN_VALUE;
      }
      return BoolState.from(element.equals(rightElement));
    } else if (rightOperand instanceof DynamicState) {
View Full Code Here

Examples of com.google.dart.engine.element.ExecutableElement

//    return super.visitFieldDeclaration(node);
//  }

  @Override
  public Void visitMethodDeclaration(MethodDeclaration node) {
    ExecutableElement element = node.getElement();
    if (isOverride(element)) {
      if (getOverriddenMember(element) == null) {
        if (element instanceof MethodElement) {
          errorReporter.reportErrorForNode(HintCode.OVERRIDE_ON_NON_OVERRIDING_METHOD, node.getName());
        } else if (element instanceof PropertyAccessorElement) {
View Full Code Here

Examples of javax.lang.model.element.ExecutableElement

            AnnotationMirror annotation) {
        assert annotation != null;
        Map<String, AnnotationValue> results = Maps.create();
        for (Map.Entry<? extends ExecutableElement, ? extends AnnotationValue> entry
                : annotation.getElementValues().entrySet()) {
            ExecutableElement key = entry.getKey();
            AnnotationValue value = entry.getValue();
            results.put(key.getSimpleName().toString(), value);
        }
        return results;
    }
View Full Code Here

Examples of javax.lang.model.element.ExecutableElement

        assert element != null;
        if (validateClassModifiers(element) == false) {
            return null;
        }
        TypeElement type = (TypeElement) element;
        ExecutableElement ctor = findConstructor(type);
        if (ctor == null) {
            return null;
        }
        validateConstructorModifiers(ctor);
        FlowPartClass aClass = analyze(type, ctor);
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.