Examples of shortReadableName()


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

      TypeBinding type = types[i];
      boolean isVarargType = i == length-1;
      if (isVarargType) {
        type = ((ArrayBinding)type).elementsType();
      }
      buffer.append(new String(makeShort ? type.shortReadableName() : type.readableName()));
      if (isVarargType) {
        buffer.append("..."); //$NON-NLS-1$
      }
    }
    return buffer.toString();
View Full Code Here

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

    TypeBinding type = parameters[i];
    boolean isVarargType = methodBinding.isVarargs() && i == length-1;
    if (isVarargType) {
      type = ((ArrayBinding)type).elementsType();
    }
    buffer.append(new String(makeShort ? type.shortReadableName() : type.readableName()));
    if (isVarargType) {
      buffer.append("..."); //$NON-NLS-1$
    }
  }
  return buffer.toString();
View Full Code Here

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

  for (int i = 0, length = types.length; i < length; i++) {
    if (i != 0) {
      buffer.append(", "); //$NON-NLS-1$
    }
    TypeBinding type = types[i];
    buffer.append(new String(makeShort ? type.shortReadableName() : type.readableName()));
  }
  return buffer.toString();
}

public void undefinedAnnotationValue(TypeBinding annotationType, MemberValuePair memberValuePair) {
View Full Code Here

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

  if (severity == ProblemSeverities.Ignore) return;
  TypeBinding castedExpressionType = castExpression.expression.resolvedType;
  this.handle(
    IProblem.UnnecessaryCast,
    new String[]{ new String(castedExpressionType.readableName()), new String(castExpression.type.resolvedType.readableName())},
    new String[]{ new String(castedExpressionType.shortReadableName()), new String(castExpression.type.resolvedType.shortReadableName())},
    severity,
    castExpression.sourceStart,
    castExpression.sourceEnd);
}
public void unnecessaryElse(ASTNode location) {
View Full Code Here

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

  if (severity == ProblemSeverities.Ignore) return;
  TypeBinding expressionType = instanceofExpression.expression.resolvedType;
  this.handle(
    IProblem.UnnecessaryInstanceof,
    new String[]{ new String(expressionType.readableName()), new String(checkType.readableName())},
    new String[]{ new String(expressionType.shortReadableName()), new String(checkType.shortReadableName())},
    severity,
    instanceofExpression.sourceStart,
    instanceofExpression.sourceEnd);
}
public void unnecessaryNLSTags(int sourceStart, int sourceEnd) {
View Full Code Here

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

      new String(castedExpressionType.readableName()),
      new String(castExpressionResolvedType.readableName())
    },
    new String[]{
      new String(castedExpressionType.shortReadableName()),
      new String(castExpressionResolvedType.shortReadableName())
    },
    severity,
    castExpression.sourceStart,
    castExpression.sourceEnd);
}
View Full Code Here

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

        new String[] {
                new String(shownConstructor.declaringClass.sourceName()),
                typesAsString(shownConstructor.isVarargs(), shownConstructor.parameters, true),
                new String(shownConstructor.declaringClass.shortReadableName()),
                typesAsString(false, invocationArguments, true),
                new String(inferredTypeArgument.shortReadableName()),
                new String(typeParameter.sourceName),
                parameterBoundAsString(typeParameter, true) },
        sourceStart,
        sourceEnd);
      return;
View Full Code Here

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

        new String[] {
                new String(shownMethod.selector),
                typesAsString(shownMethod.isVarargs(), shownMethod.parameters, true),
                new String(shownMethod.declaringClass.shortReadableName()),
                typesAsString(false, invocationArguments, true),
                new String(inferredTypeArgument.shortReadableName()),
                new String(typeParameter.sourceName),
                parameterBoundAsString(typeParameter, true) },
        (int) (messageSend.nameSourcePosition >>> 32),
        (int) messageSend.nameSourcePosition);
      return;
View Full Code Here

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

        new String[] {
                new String(shownConstructor.declaringClass.sourceName()),
                typesAsString(shownConstructor.isVarargs(), shownConstructor.parameters, true),
                new String(shownConstructor.declaringClass.shortReadableName()),
                typesAsString(false, invocationArguments, true),
                new String(inferredTypeArgument.shortReadableName()),
                new String(typeParameter.sourceName),
                parameterBoundAsString(typeParameter, true) },
        severity,
        sourceStart,
        sourceEnd);
View Full Code Here

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

        new String[] {
                new String(shownMethod.selector),
                typesAsString(shownMethod.isVarargs(), shownMethod.parameters, true),
                new String(shownMethod.declaringClass.shortReadableName()),
                typesAsString(false, invocationArguments, true),
                new String(inferredTypeArgument.shortReadableName()),
                new String(typeParameter.sourceName),
                parameterBoundAsString(typeParameter, true) },
        severity,
        (int) (messageSend.nameSourcePosition >>> 32),
        (int) messageSend.nameSourcePosition);
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.