Java Code Examples for org.eclipse.jdt.core.dom.EnumDeclaration#resolveBinding()
The following examples show how to use
org.eclipse.jdt.core.dom.EnumDeclaration#resolveBinding() .
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: AstVisitor.java From jdt2famix with Eclipse Public License 1.0 | 6 votes |
@Override public boolean visit(EnumDeclaration node) { ITypeBinding binding = node.resolveBinding(); if (binding == null) { logNullBinding("enum declaration", node.getName(), ((CompilationUnit) node.getRoot()).getLineNumber(node.getStartPosition())); return false; } Type ensureTypeFromTypeBinding = importer.ensureTypeFromTypeBinding(binding); if (ensureTypeFromTypeBinding instanceof Enum) { Enum famixEnum = (Enum) ensureTypeFromTypeBinding; createSourceAnchorsForInterfaceInheritance(node, famixEnum); famixEnum.setIsStub(false); importer.createSourceAnchor(famixEnum, node); importer.ensureCommentFromBodyDeclaration(famixEnum, node); importer.pushOnContainerStack(famixEnum); } return true; }
Example 2
Source File: APIVersion.java From apidiff with MIT License | 5 votes |
public EnumDeclaration getVersionNonAccessibleEnum(EnumDeclaration enumVersrionReference){ for (EnumDeclaration enumDeclarion : this.apiNonAccessibleEnums) { if(enumDeclarion.resolveBinding() != null && enumVersrionReference.resolveBinding() != null){ if(enumDeclarion.resolveBinding().getQualifiedName().equals(enumVersrionReference.resolveBinding().getQualifiedName())){ return enumDeclarion; } } } return null; }
Example 3
Source File: APIVersion.java From apidiff with MIT License | 5 votes |
public EnumDeclaration getVersionAccessibleEnum(EnumDeclaration enumVersrionReference){ for (EnumDeclaration enumDeclarion : this.apiAccessibleEnums) { if(enumDeclarion.resolveBinding() != null && enumVersrionReference.resolveBinding() != null){ if(enumDeclarion.resolveBinding().getQualifiedName().equals(enumVersrionReference.resolveBinding().getQualifiedName())){ return enumDeclarion; } } } return null; }
Example 4
Source File: DOMFinder.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
public boolean visit(EnumDeclaration node) { if (found(node, node.getName()) && this.resolveBinding) this.foundBinding = node.resolveBinding(); return true; }