Examples of PackageBinding


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.PackageBinding

  // receiverType can be an array binding in one case... see if you can change it
  if (receiverType instanceof ArrayBinding)
    return false;
  ReferenceBinding type = (ReferenceBinding) receiverType;
  PackageBinding declaringPackage = fieldBinding.declaringClass.fPackage;
  do {
    if (fieldBinding.declaringClass == type) return true;
    if (declaringPackage != type.fPackage) return false;
  } while ((type = type.superclass()) != null);
  return false;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.PackageBinding

  // receiverType can be an array binding in one case... see if you can change it
  if (receiverType instanceof ArrayBinding)
    return false;
  ReferenceBinding type = (ReferenceBinding) receiverType;
  PackageBinding declaringPackage = methodBinding.declaringClass.fPackage;
  do {
    if (methodBinding.declaringClass == type) return true;
    if (declaringPackage != type.fPackage) return false;
  } while ((type = type.superclass()) != null);
  return false;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.PackageBinding

    return binding;

  int length = compoundName.length;
  int currentIndex = 1;
  foundType: if (binding instanceof PackageBinding) {
    PackageBinding packageBinding = (PackageBinding) binding;

    while (currentIndex < length) {
      binding = packageBinding.getTypeOrPackage(compoundName[currentIndex++]);
      invocationSite.setFieldIndex(currentIndex);
       if (binding == null) {
         if (currentIndex == length) // must be a type if its the last name, otherwise we have no idea if its a package or type
          return new ProblemReferenceBinding(CharOperation.subarray(compoundName, 0, currentIndex), null, ProblemReasons.NotFound);
        else
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.PackageBinding

public int size() {
  return elementSize;
}
public String toString() {
  String s = ""; //$NON-NLS-1$
  PackageBinding pkg;
  for (int i = 0, length = valueTable.length; i < length; i++)
    if ((pkg = valueTable[i]) != null)
      s += pkg.toString() + "\n"; //$NON-NLS-1$
  return s;
}
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.PackageBinding

    int aliased = (aliases == null ? -1 : aliases.indexOf(variableName));
    if (aliased != -1) {
      if (aliased > sourceType.typeVariables.length || sourceType.typeVariables.length == 0) {
        TypeVariableBinding tvb = new TypeVariableBinding("fake".toCharArray(), null, 0);
        tvb.superclass = getJavaLangObject();
        tvb.fPackage = new PackageBinding(environment());
        return tvb;
        // error is going to be reported by someone else!
      }
      TypeVariableBinding tvb = sourceType.typeVariables()[aliased];
      tvb.fPackage = sourceType.fPackage;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.PackageBinding

            .append(getDeclaringClass().getQualifiedName())
            .append('.');
          buffer.append(getName());
          return String.valueOf(buffer);
        }
        PackageBinding packageBinding = this.binding.getPackage();
        buffer = new StringBuffer();
        if (packageBinding != null && packageBinding.compoundName != CharOperation.NO_CHAR_CHAR) {
          buffer.append(CharOperation.concatWith(packageBinding.compoundName, '.')).append('.');
        }
        buffer.append(getName());
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.PackageBinding

    this.typeBinding = getTypeBinding(simpleTypeName);
  }

  public void consumePackage(char[] pkgName) {
    this.compoundName = CharOperation.splitOn('/', pkgName);
    this.compilerBinding = new PackageBinding(this.compoundName, null, this.environment);
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.PackageBinding

  // receiverType can be an array binding in one case... see if you can change it
  if (receiverType instanceof ArrayBinding)
    return false;
  ReferenceBinding type = (ReferenceBinding) receiverType;
  PackageBinding declaringPackage = fieldBinding.declaringClass.fPackage;
  TypeBinding originalDeclaringClass = fieldBinding.declaringClass .original();
  do {
    if (type.isCapture()) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=285002
      if (originalDeclaringClass == type.erasure().original()) return true
    } else {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.PackageBinding

  // receiverType can be an array binding in one case... see if you can change it
  if (receiverType instanceof ArrayBinding)
    return false;
  ReferenceBinding type = (ReferenceBinding) receiverType;
  PackageBinding declaringPackage = methodBinding.declaringClass.fPackage;
  TypeBinding originalDeclaringClass = methodBinding.declaringClass .original();
  do {
    if (type.isCapture()) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=285002
      if (originalDeclaringClass == type.erasure().original()) return true;
    } else {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.PackageBinding

    return binding;

  int length = compoundName.length;
  int currentIndex = 1;
  foundType: if (binding instanceof PackageBinding) {
    PackageBinding packageBinding = (PackageBinding) binding;

    while (currentIndex < length) {
      binding = packageBinding.getTypeOrPackage(compoundName[currentIndex++]);
      invocationSite.setFieldIndex(currentIndex);
       if (binding == null) {
         if (currentIndex == length) // must be a type if its the last name, otherwise we have no idea if its a package or type
          return new ProblemReferenceBinding(CharOperation.subarray(compoundName, 0, currentIndex), null, ProblemReasons.NotFound);
        else
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.