private String computeAnonymousName(SourceTypeBinding binding) { final String poolName = String.valueOf(binding.constantPoolName()); final int lastIndexSeparator = poolName.lastIndexOf(CtType.INNERTTYPE_SEPARATOR); return poolName.substring(lastIndexSeparator + 1, lastIndexSeparator + 2); }
public List<String> getNestMembers() { if (this.nestMembers == null) return null; List<String> list = this.nestMembers .stream() .map(s -> new String(s.constantPoolName())) .sorted() .collect(Collectors.toList()); return list; }
type.setSimpleName(computeAnonymousName(typeDeclaration.binding.constantPoolName())); } else { type.setSimpleName(new String(typeDeclaration.name));
ref = this.jdtTreeBuilder.getFactory().Core().createTypeReference(); if (binding.isAnonymousType()) { ref.setSimpleName(JDTTreeBuilderHelper.computeAnonymousName(((SourceTypeBinding) binding).constantPoolName())); ref.setDeclaringType(getTypeReference(binding.enclosingType())); } else { ref.setDeclaringType(getTypeReference(binding.enclosingType())); } else if (binding.enclosingMethod() != null) { ref.setSimpleName(JDTTreeBuilderHelper.computeAnonymousName(((SourceTypeBinding) binding).constantPoolName())); ref.setDeclaringType(getTypeReference(binding.enclosingType())); ref = this.jdtTreeBuilder.getFactory().Core().createTypeReference(); if (binding.isAnonymousType()) { ref.setSimpleName(JDTTreeBuilderHelper.computeAnonymousName(((SourceTypeBinding) binding).constantPoolName())); ref.setDeclaringType(getTypeReference(binding.enclosingType())); } else {
public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) return this.constantPoolName = this.prototype.constantPoolName(); if (this.constantPoolName == null && this.scope != null) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=322154, we do have some // cases where the left hand does not know what the right is doing. this.constantPoolName = this.scope.compilationUnitScope().computeConstantPoolName(this); } return this.constantPoolName; }
public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) return this.constantPoolName = this.prototype.constantPoolName(); if (this.constantPoolName == null && this.scope != null) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=322154, we do have some // cases where the left hand does not know what the right is doing. this.constantPoolName = this.scope.compilationUnitScope().computeConstantPoolName(this); } return this.constantPoolName; }
public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) return this.constantPoolName = this.prototype.constantPoolName(); if (this.constantPoolName == null && this.scope != null) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=322154, we do have some // cases where the left hand does not know what the right is doing. this.constantPoolName = this.scope.compilationUnitScope().computeConstantPoolName(this); } return this.constantPoolName; }
public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) return this.constantPoolName = this.prototype.constantPoolName(); if (this.constantPoolName == null && this.scope != null) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=322154, we do have some // cases where the left hand does not know what the right is doing. this.constantPoolName = this.scope.compilationUnitScope().computeConstantPoolName(this); } return this.constantPoolName; }
public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) return this.constantPoolName = this.prototype.constantPoolName(); if (this.constantPoolName == null && this.scope != null) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=322154, we do have some // cases where the left hand does not know what the right is doing. this.constantPoolName = this.scope.compilationUnitScope().computeConstantPoolName(this); } return this.constantPoolName; }
public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) return this.constantPoolName = this.prototype.constantPoolName(); if (this.constantPoolName == null && this.scope != null) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=322154, we do have some // cases where the left hand does not know what the right is doing. this.constantPoolName = this.scope.compilationUnitScope().computeConstantPoolName(this); } return this.constantPoolName; }
public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) return this.constantPoolName = this.prototype.constantPoolName(); if (this.constantPoolName == null && this.scope != null) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=322154, we do have some // cases where the left hand does not know what the right is doing. this.constantPoolName = this.scope.compilationUnitScope().computeConstantPoolName(this); } return this.constantPoolName; }
@Override public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) return this.constantPoolName = this.prototype.constantPoolName(); if (this.constantPoolName == null && this.scope != null) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=322154, we do have some // cases where the left hand does not know what the right is doing. this.constantPoolName = this.scope.compilationUnitScope().computeConstantPoolName(this); } return this.constantPoolName; }
public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) { return this.prototype.constantPoolName(); } return this.constantPoolName = CharOperation.concat(enclosingType().constantPoolName(), this.sourceName, '$'); }
public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) { return this.prototype.constantPoolName(); } return this.constantPoolName = CharOperation.concat(enclosingType().constantPoolName(), this.sourceName, '$'); }
@Override public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) { return this.prototype.constantPoolName(); } return this.constantPoolName = CharOperation.concat(enclosingType().constantPoolName(), this.sourceName, '$'); }
public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) { return this.prototype.constantPoolName(); } return this.constantPoolName = CharOperation.concat(enclosingType().constantPoolName(), this.sourceName, '$'); }
public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) { return this.prototype.constantPoolName(); } return this.constantPoolName = CharOperation.concat(enclosingType().constantPoolName(), this.sourceName, '$'); }
public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) { return this.prototype.constantPoolName(); } return this.constantPoolName = CharOperation.concat(enclosingType().constantPoolName(), this.sourceName, '$'); }
public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) { return this.prototype.constantPoolName(); } return this.constantPoolName = CharOperation.concat(enclosingType().constantPoolName(), this.sourceName, '$'); }
public char[] constantPoolName() /* java/lang/Object */ { if (this.constantPoolName != null) return this.constantPoolName; if (!isPrototype()) { return this.prototype.constantPoolName(); } return this.constantPoolName = CharOperation.concat(enclosingType().constantPoolName(), this.sourceName, '$'); }