@Override public String toString() { return "[Parameter(" + fParameterIndex + "," + Bindings.asString(fMethodBinding) + ")]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ }
@Override public String toString() { return "Decl(" + Bindings.asString(fMemberBinding) + ")"; //$NON-NLS-1$ //$NON-NLS-2$ }
public String toResolvedString() { if (fTypeBinding == null) return "<NULL BINDING>"; //$NON-NLS-1$ return Bindings.asString(fTypeBinding); }
@Override public String toString() { return "[" + Bindings.asString(fMethodBinding) + "]_returnType"; //$NON-NLS-1$ //$NON-NLS-2$ }
public String toResolvedString() { if (fTypeBinding == null) return "<NULL BINDING>"; //$NON-NLS-1$ return Bindings.asString(fTypeBinding); }
public String toResolvedString() { if (fTypeBinding == null) return "<NULL BINDING>"; //$NON-NLS-1$ return Bindings.asString(fTypeBinding); }
public String toString() { return "[" + Bindings.asString(fMethodBinding) + "]_returnType"; //$NON-NLS-1$ //$NON-NLS-2$ }
@Override public String toString() { return "[Parameter(" + fParameterIndex + "," + Bindings.asString(fMethodBinding) + ")]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ }
@Override public String toString() { return "Decl(" + Bindings.asString(fMemberBinding) + ")"; //$NON-NLS-1$ //$NON-NLS-2$ }
@Override public String toString() { return "[" + Bindings.asString(fMethodBinding) + "]_returnType"; //$NON-NLS-1$ //$NON-NLS-2$ }
public String toString() { return "[Parameter(" + fParameterIndex + "," + Bindings.asString(fMethodBinding) + ")]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ }
public String toString() { return "Decl(" + Bindings.asString(fMemberBinding) + ")"; //$NON-NLS-1$ //$NON-NLS-2$ }
/** * Note: this method is for debugging and testing purposes only. * There are tests whose pre-computed test results rely on the returned String's format. * @see org.eclipse.jdt.internal.ui.viewsupport.BindingLabelProvider */ public static String asString(IBinding binding) { if (binding instanceof IMethodBinding) return asString((IMethodBinding)binding); else if (binding instanceof ITypeBinding) return ((ITypeBinding)binding).getQualifiedName(); else if (binding instanceof IVariableBinding) return asString((IVariableBinding)binding); return binding.toString(); }
/** * Note: this method is for debugging and testing purposes only. * There are tests whose pre-computed test results rely on the returned String's format. * Use org.eclipse.jdt.internal.ui.viewsupport.BindingLabelProvider to present a binding to the user. * * @param binding the binding * @return a string representation of given binding */ public static String asString(IBinding binding) { if (binding instanceof IMethodBinding) return asString((IMethodBinding)binding); else if (binding instanceof ITypeBinding) return ((ITypeBinding)binding).getQualifiedName(); else if (binding instanceof IVariableBinding) return asString((IVariableBinding)binding); return binding.toString(); }
/** * Note: this method is for debugging and testing purposes only. * There are tests whose pre-computed test results rely on the returned String's format. * @param binding the binding * @return a string representation of given binding * @see org.eclipse.jdt.internal.ui.viewsupport.BindingLabelProvider */ public static String asString(IBinding binding) { if (binding instanceof IMethodBinding) return asString((IMethodBinding)binding); else if (binding instanceof ITypeBinding) return ((ITypeBinding)binding).getQualifiedName(); else if (binding instanceof IVariableBinding) return asString((IVariableBinding)binding); return binding.toString(); }
public ReturnTypeVariable2 makeReturnTypeVariable(IMethodBinding methodBinding) { if (methodBinding == null) return null; TType returnType= getBoxedType(methodBinding.getReturnType(), /*no boxing*/null); if (returnType == null) return null; ReturnTypeVariable2 cv= new ReturnTypeVariable2(returnType, methodBinding); ReturnTypeVariable2 storedCv= (ReturnTypeVariable2) storedCv(cv); if (cv == storedCv) { makeElementVariables(storedCv, returnType); makeArrayElementVariable(storedCv); if (JavaPlugin.DEBUG_TYPE_CONSTRAINTS) storedCv.setData(ConstraintVariable2.TO_STRING, "[ReturnType(" + Bindings.asString(methodBinding) + ")]"); //$NON-NLS-1$ //$NON-NLS-2$ } return storedCv; }
public ReturnTypeVariable2 makeReturnTypeVariable(IMethodBinding methodBinding) { if (methodBinding == null) return null; TType returnType= getBoxedType(methodBinding.getReturnType(), /*no boxing*/null); if (returnType == null) return null; ReturnTypeVariable2 cv= new ReturnTypeVariable2(returnType, methodBinding); ReturnTypeVariable2 storedCv= (ReturnTypeVariable2) storedCv(cv); if (cv == storedCv) { makeElementVariables(storedCv, returnType); makeArrayElementVariable(storedCv); if (fStoreToString) storedCv.setData(ConstraintVariable2.TO_STRING, "[ReturnType(" + Bindings.asString(methodBinding) + ")]"); //$NON-NLS-1$ //$NON-NLS-2$ } return storedCv; }
public ReturnTypeVariable2 makeReturnTypeVariable(IMethodBinding methodBinding) { if (methodBinding == null) return null; TType returnType= getBoxedType(methodBinding.getReturnType(), /*no boxing*/null); if (returnType == null) return null; ReturnTypeVariable2 cv= new ReturnTypeVariable2(returnType, methodBinding); ReturnTypeVariable2 storedCv= (ReturnTypeVariable2) storedCv(cv); if (cv == storedCv) { makeElementVariables(storedCv, returnType); makeArrayElementVariable(storedCv); if (JavaPlugin.DEBUG_TYPE_CONSTRAINTS) storedCv.setData(ConstraintVariable2.TO_STRING, "[ReturnType(" + Bindings.asString(methodBinding) + ")]"); //$NON-NLS-1$ //$NON-NLS-2$ } return storedCv; }
public ParameterTypeVariable2 makeParameterTypeVariable(IMethodBinding methodBinding, int parameterIndex) { if (methodBinding == null) return null; TType type= getBoxedType(methodBinding.getParameterTypes() [parameterIndex], /*no boxing*/null); if (type == null) return null; ParameterTypeVariable2 cv= new ParameterTypeVariable2(type, parameterIndex, methodBinding); ParameterTypeVariable2 storedCv= (ParameterTypeVariable2) storedCv(cv); if (storedCv == cv) { if (methodBinding.getDeclaringClass().isLocal() || Modifier.isPrivate(methodBinding.getModifiers())) fCuScopedConstraintVariables.add(cv); makeElementVariables(storedCv, type); makeArrayElementVariable(storedCv); if (JavaPlugin.DEBUG_TYPE_CONSTRAINTS) storedCv.setData(ConstraintVariable2.TO_STRING, "[Parameter(" + parameterIndex + "," + Bindings.asString(methodBinding) + ")]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } return storedCv; }
public ParameterTypeVariable2 makeParameterTypeVariable(IMethodBinding methodBinding, int parameterIndex) { if (methodBinding == null) return null; TType type= getBoxedType(methodBinding.getParameterTypes() [parameterIndex], /*no boxing*/null); if (type == null) return null; ParameterTypeVariable2 cv= new ParameterTypeVariable2(type, parameterIndex, methodBinding); ParameterTypeVariable2 storedCv= (ParameterTypeVariable2) storedCv(cv); if (storedCv == cv) { if (methodBinding.getDeclaringClass().isLocal() || Modifier.isPrivate(methodBinding.getModifiers())) fCuScopedConstraintVariables.add(cv); makeElementVariables(storedCv, type); makeArrayElementVariable(storedCv); if (fStoreToString) storedCv.setData(ConstraintVariable2.TO_STRING, "[Parameter(" + parameterIndex + "," + Bindings.asString(methodBinding) + ")]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } return storedCv; }