Package org.eclipse.jdt.internal.core

Examples of org.eclipse.jdt.internal.core.LocalVariable


    QualifiedNameReference qNameRef = (QualifiedNameReference) reference;
    long sourcePosition = qNameRef.sourcePositions[0];
    offset = (int) (sourcePosition >>> 32);
    length = ((int) sourcePosition) - offset +1;
  } else if (reference instanceof LocalDeclaration) {
    LocalVariable localVariable = getLocalVariable();
    offset = localVariable.nameStart;
    length = localVariable.nameEnd-offset+1;
    element = localVariable;
    this.match = locator.newDeclarationMatch(element, null, accuracy, offset, length);
    locator.report(this.match);
View Full Code Here


    case AbstractVariableDeclaration.LOCAL_VARIABLE:
      isParameter = false;
      //$FALL-THROUGH$
    case AbstractVariableDeclaration.PARAMETER:
      if (variableDeclaration.type.resolvedType != null) {
        return new LocalVariable((JavaElement)parent,
          new String(variableDeclaration.name),
          variableDeclaration.declarationSourceStart,
          variableDeclaration.declarationSourceEnd,
          variableDeclaration.sourceStart,
          variableDeclaration.sourceEnd,
View Full Code Here

      if (annotations[i].getElementName().equals(name)) {
        return annotations[i];
      }
    }
    if (parent instanceof LocalVariable) {
      LocalVariable localVariable = (LocalVariable) parent;
      IAnnotation[][] annotationsOnDimensions = localVariable.annotationsOnDimensions;
      int noOfDimensions = annotationsOnDimensions == null ? 0 : annotationsOnDimensions.length;
      for (int i = 0; i < noOfDimensions; ++i) {
        IAnnotation[] dimAnnotations = annotationsOnDimensions[i];
        int noOfAnnotations = dimAnnotations.length;
View Full Code Here

      JavaElement type = this.getJavaElementOfCompilationUnit(typeDeclaration, typeDeclaration.binding);
      parent = Util.getUnresolvedJavaElement(local.sourceStart, local.sourceEnd, type);
    }
    if (parent == null) return null;

    return new LocalVariable(
        parent,
        new String(local.name),
        local.declarationSourceStart,
        local.declarationSourceEnd,
        local.sourceStart,
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.core.LocalVariable

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.