Package org.aspectj.org.eclipse.jdt.internal.core

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


            maskedLimitTo,
            matchRule);
      }
      break;
    case IJavaElement.LOCAL_VARIABLE :
      LocalVariable localVar = (LocalVariable) element;
      boolean findVarDeclarations = false;
      boolean findVarReadAccess = false;
      boolean findVarWriteAccess = false;
      switch (maskedLimitTo) {
        case IJavaSearchConstants.DECLARATIONS :
View Full Code Here


* Create an handle for a local variable declartion (may be a local variable or type parameter).
*/
protected IJavaElement createHandle(AbstractVariableDeclaration variableDeclaration, IJavaElement parent) {
  switch (variableDeclaration.getKind()) {
    case AbstractVariableDeclaration.LOCAL_VARIABLE:
      return new LocalVariable((JavaElement)parent,
        new String(variableDeclaration.name),
        variableDeclaration.declarationSourceStart,
        variableDeclaration.declarationSourceEnd,
        variableDeclaration.sourceStart,
        variableDeclaration.sourceEnd,
        new String(variableDeclaration.type.resolvedType.signature())
      );
    case AbstractVariableDeclaration.PARAMETER:
      return new LocalVariable((JavaElement)parent,
        new String(variableDeclaration.name),
        variableDeclaration.declarationSourceStart,
        variableDeclaration.declarationSourceEnd,
        variableDeclaration.sourceStart,
        variableDeclaration.sourceEnd,
View Full Code Here

    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;
  }
  if (offset >= 0) {
View Full Code Here

      ASTNode node = localVar.getParent();
      sourceStart = node.getStartPosition();
      sourceLength = node.getLength();
    }
    char[] typeSig = this.binding.type.genericTypeSignature();
    return new LocalVariable(method, localVar.getName().getIdentifier(), sourceStart, sourceStart+sourceLength-1, nameStart, nameStart+nameLength-1, new String(typeSig));
  }
View Full Code Here

TOP

Related Classes of org.aspectj.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.