Java Code Examples for org.eclipse.jdt.core.dom.SuperConstructorInvocation#resolveConstructorBinding()
The following examples show how to use
org.eclipse.jdt.core.dom.SuperConstructorInvocation#resolveConstructorBinding() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SemanticHighlightingReconciler.java From eclipse.jdt.ls with Eclipse Public License 2.0 | 5 votes |
@Override public boolean visit(SuperConstructorInvocation node) { // XXX Hack for performance reasons (should loop over fJobSemanticHighlightings can call consumes(*)) if (fJobDeprecatedMemberHighlighting != null) { IMethodBinding constructorBinding= node.resolveConstructorBinding(); if (constructorBinding != null && constructorBinding.isDeprecated()) { int offset= node.getStartPosition(); int length= 5; if (offset > -1 && length > 0) { addPosition(offset, length, fJobDeprecatedMemberHighlighting); } } } return true; }
Example 2
Source File: FullConstraintCreator.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
@Override public ITypeConstraint[] create(SuperConstructorInvocation invocation){ List<Expression> arguments= invocation.arguments(); List<ITypeConstraint> result= new ArrayList<ITypeConstraint>(arguments.size()); IMethodBinding methodBinding= invocation.resolveConstructorBinding(); result.addAll(Arrays.asList(getArgumentConstraints(arguments, methodBinding))); return result.toArray(new ITypeConstraint[result.size()]); }
Example 3
Source File: SemanticHighlightingReconciler.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
@Override public boolean visit(SuperConstructorInvocation node) { // XXX Hack for performance reasons (should loop over fJobSemanticHighlightings can call consumes(*)) if (fJobDeprecatedMemberHighlighting != null) { IMethodBinding constructorBinding= node.resolveConstructorBinding(); if (constructorBinding != null && constructorBinding.isDeprecated()) { int offset= node.getStartPosition(); int length= 5; if (offset > -1 && length > 0) addPosition(offset, length, fJobDeprecatedMemberHighlighting); } } return true; }
Example 4
Source File: SuperTypeConstraintsCreator.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
@Override public final void endVisit(final SuperConstructorInvocation node) { final IMethodBinding binding= node.resolveConstructorBinding(); if (binding != null) endVisit(node.arguments(), binding); }