Examples of constantPoolName()


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding.constantPoolName()

      this.innerClassesBindings.toArray(innerClasses);
      Arrays.sort(innerClasses, new Comparator() {
        public int compare(Object o1, Object o2) {
          TypeBinding binding1 = (TypeBinding) o1;
          TypeBinding binding2 = (TypeBinding) o2;
          return CharOperation.compareTo(binding1.constantPoolName(), binding2.constantPoolName());
        }
      });
      // Generate the inner class attribute
      int exSize = 8 * numberOfInnerClasses + 8;
      if (exSize + contentsOffset >= this.contents.length) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.codegen.VerificationTypeInfo.constantPoolName()

                    int offset = info.offset;
                    this.contents[localContentsOffset++] = (byte) (offset >> 8);
                    this.contents[localContentsOffset++] = (byte) offset;
                    break;
                  case VerificationTypeInfo.ITEM_OBJECT :
                    int indexForType = this.constantPool.literalIndexForType(info.constantPoolName());
                    this.contents[localContentsOffset++] = (byte) (indexForType >> 8);
                    this.contents[localContentsOffset++] = (byte) indexForType;
                }
              }
              numberOfLocalEntries++;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.constantPoolName()

      if (alreadySeenTypeBindings.contains(binaryTypeBinding)) {
        continue;
      }
      alreadySeenTypeBindings.add(binaryTypeBinding);

      String binaryName = String.valueOf(binaryTypeBinding.constantPoolName());
      if (validBinaryTypeNames.contains(binaryName)) {
        // This binary name is valid; it is a reference to a unit that was
        // compiled in a previous JDT run.
        continue;
      }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.constantPoolName()

    this.contents[localContentsOffset++] = (byte) (numberOfInnerClasses >> 8);
    this.contents[localContentsOffset++] = (byte) numberOfInnerClasses;
    for (int i = 0; i < numberOfInnerClasses; i++) {
      ReferenceBinding innerClass = innerClasses[i];
      int accessFlags = innerClass.getAccessFlags();
      int innerClassIndex = this.constantPool.literalIndexForType(innerClass.constantPoolName());
      // inner class index
      this.contents[localContentsOffset++] = (byte) (innerClassIndex >> 8);
      this.contents[localContentsOffset++] = (byte) innerClassIndex;
      // outer class index: anonymous and local have no outer class index
      if (innerClass.isMemberType()) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.constantPoolName()

  private transient NameEnvironmentAnswer nameEnvironmentAnswer;

  CompiledClass(TypeDeclaration typeDeclaration, CompiledClass enclosingClass) {
    this.enclosingClass = enclosingClass;
    SourceTypeBinding binding = typeDeclaration.binding;
    this.internalName = CharOperation.charToString(binding.constantPoolName());
    ClassFile classFile = getClassFile(typeDeclaration, internalName);
    byte[] bytes = classFile.getBytes();
    this.cacheToken = diskCache.writeByteArray(bytes);
    this.isLocal = isLocalType(binding);
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.constantPoolName()

    }

    JExpression processExpression(AllocationExpression x) {
      SourceInfo info = makeSourceInfo(x);
      SourceTypeBinding typeBinding = erasure(x.resolvedType);
      if (typeBinding.constantPoolName() == null) {
        /*
         * Weird case: if JDT determines that this local class is totally
         * uninstantiable, it won't bother allocating a local name.
         */
        return program.getLiteralNull();
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.constantPoolName()

    }

    JExpression processExpression(AllocationExpression x) {
      SourceInfo info = makeSourceInfo(x);
      SourceTypeBinding typeBinding = erasure(x.resolvedType);
      if (typeBinding.constantPoolName() == null) {
        /*
         * Weird case: if JDT determines that this local class is totally
         * uninstantiable, it won't bother allocating a local name.
         */
        return program.getLiteralNull();
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.constantPoolName()

      CompilationResult compResult = typeDeclaration.compilationResult;
      currentSeparatorPositions = compResult.lineSeparatorPositions;
      currentFileName = String.valueOf(compResult.fileName);
      SourceTypeBinding binding = typeDeclaration.binding;

      if (binding.constantPoolName() == null) {
        /*
         * Weird case: if JDT determines that this local class is totally
         * uninstantiable, it won't bother allocating a local name.
         */
        return false;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.constantPoolName()

    private boolean process(TypeDeclaration typeDeclaration) {
      try {
        char[][] name = typeDeclaration.binding.compoundName;
        SourceTypeBinding binding = typeDeclaration.binding;
        if (binding instanceof LocalTypeBinding) {
          char[] localName = binding.constantPoolName();
          if (localName == null) {
            /*
             * Weird case: if JDT determines that this local class is totally
             * uninstantiable, it won't bother allocating a local name.
             */
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.constantPoolName()

   */
  private JRealClassType createType(CompiledClass compiledClass,
      JRealClassType enclosingType) {
    TypeDeclaration typeDecl = compiledClass.getTypeDeclaration();
    SourceTypeBinding binding = typeDecl.binding;
    assert (binding.constantPoolName() != null);

    String qname = compiledClass.getSourceName();
    String className = Shared.getShortName(qname);
    String jpkgName = compiledClass.getPackageName();
    JPackage pkg = typeOracle.getOrCreatePackage(jpkgName);
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.