public int resolveLevel(ASTNode possibleMatchingNode) { if (this.pattern.findReferences) { if (possibleMatchingNode instanceof SingleTypeReference) { return resolveLevel(((SingleTypeReference) possibleMatchingNode).resolvedType); } } if (this.pattern.findDeclarations) { if (possibleMatchingNode instanceof TypeParameter) { return matchTypeParameter(((TypeParameter) possibleMatchingNode).binding, true); } } return IMPOSSIBLE_MATCH; }
public int resolveLevel(ASTNode possibleMatchingNode) { if (this.pattern.findReferences) { if (possibleMatchingNode instanceof SingleTypeReference) { return resolveLevel(((SingleTypeReference) possibleMatchingNode).resolvedType); } } if (this.pattern.findDeclarations) { if (possibleMatchingNode instanceof TypeParameter) { return matchTypeParameter(((TypeParameter) possibleMatchingNode).binding, true); } } return IMPOSSIBLE_MATCH; }
public int resolveLevel(ASTNode possibleMatchingNode) { if (this.pattern.findReferences) { if (possibleMatchingNode instanceof SingleTypeReference) { return resolveLevel(((SingleTypeReference) possibleMatchingNode).resolvedType); } } if (this.pattern.findDeclarations) { if (possibleMatchingNode instanceof TypeParameter) { return matchTypeParameter(((TypeParameter) possibleMatchingNode).binding, true); } } return IMPOSSIBLE_MATCH; }
public int resolveLevel(ASTNode possibleMatchingNode) { if (this.pattern.findReferences) { if (possibleMatchingNode instanceof SingleTypeReference) { return resolveLevel(((SingleTypeReference) possibleMatchingNode).resolvedType); } } if (this.pattern.findDeclarations) { if (possibleMatchingNode instanceof TypeParameter) { return matchTypeParameter(((TypeParameter) possibleMatchingNode).binding, true); } } return IMPOSSIBLE_MATCH; }
public int resolveLevel(ASTNode possibleMatchingNode) { if (this.pattern.findReferences) { if (possibleMatchingNode instanceof SingleTypeReference) { return resolveLevel(((SingleTypeReference) possibleMatchingNode).resolvedType); } } if (this.pattern.findDeclarations) { if (possibleMatchingNode instanceof TypeParameter) { return matchTypeParameter(((TypeParameter) possibleMatchingNode).binding, true); } } return IMPOSSIBLE_MATCH; }
@Override public int resolveLevel(ASTNode possibleMatchingNode) { if (this.pattern.findReferences) { if (possibleMatchingNode instanceof SingleTypeReference) { return resolveLevel(((SingleTypeReference) possibleMatchingNode).resolvedType); } } if (this.pattern.findDeclarations) { if (possibleMatchingNode instanceof TypeParameter) { return matchTypeParameter(((TypeParameter) possibleMatchingNode).binding, true); } } return IMPOSSIBLE_MATCH; }