@Override public boolean consumes(SemanticToken token) { StructuralPropertyDescriptor location = token.getNode().getLocationInParent(); return location == MethodDeclaration.NAME_PROPERTY || location == AnnotationTypeMemberDeclaration.NAME_PROPERTY; } }
public boolean consumes(SemanticToken token) { StructuralPropertyDescriptor location= token.getNode().getLocationInParent(); return location == MethodDeclaration.NAME_PROPERTY || location == AnnotationTypeMemberDeclaration.NAME_PROPERTY; } }
@Override public boolean consumes(SemanticToken token) { return isAutoUnBoxing(token.getNode()); }
@Override public boolean consumes(SemanticToken token) { StructuralPropertyDescriptor location= token.getNode().getLocationInParent(); return location == MethodDeclaration.NAME_PROPERTY || location == AnnotationTypeMemberDeclaration.NAME_PROPERTY; } }
@Override public boolean consumes(SemanticToken token) { StructuralPropertyDescriptor location= token.getNode().getLocationInParent(); return location == MethodDeclaration.NAME_PROPERTY || location == AnnotationTypeMemberDeclaration.NAME_PROPERTY; } }
@Override public boolean consumes(SemanticToken token) { return isAutoUnBoxing(token.getNode()); }
public boolean consumes(SemanticToken token) { SimpleName node= token.getNode(); if (node.getParent() instanceof MemberValuePair) { IBinding binding= token.getBinding(); boolean isAnnotationElement= binding != null && binding.getKind() == IBinding.METHOD; return isAnnotationElement; } return false; } }
@Override public boolean consumes(SemanticToken token) { SimpleName node= token.getNode(); if (node.getParent() instanceof MemberValuePair) { IBinding binding= token.getBinding(); boolean isAnnotationElement= binding != null && binding.getKind() == IBinding.METHOD; return isAnnotationElement; } return false; } }
@Override public boolean consumes(SemanticToken token) { SimpleName node = token.getNode(); if (node.getParent() instanceof MemberValuePair) { IBinding binding = token.getBinding(); boolean isAnnotationElement = binding != null && binding.getKind() == IBinding.METHOD; return isAnnotationElement; } return false; } }
@Override public boolean consumes(SemanticToken token) { SimpleName node= token.getNode(); if (node.getParent() instanceof MemberValuePair) { IBinding binding= token.getBinding(); boolean isAnnotationElement= binding != null && binding.getKind() == IBinding.METHOD; return isAnnotationElement; } return false; } }
@Override public boolean consumes(SemanticToken token) { SimpleName node= token.getNode(); StructuralPropertyDescriptor location= node.getLocationInParent(); if (location == VariableDeclarationFragment.NAME_PROPERTY || location == SingleVariableDeclaration.NAME_PROPERTY) { ASTNode parent= node.getParent(); if (parent instanceof VariableDeclaration) { parent= parent.getParent(); return parent == null || !(parent instanceof FieldDeclaration); } } return false; } }
public boolean consumes(SemanticToken token) { SimpleName node= token.getNode(); StructuralPropertyDescriptor location= node.getLocationInParent(); if (location == VariableDeclarationFragment.NAME_PROPERTY || location == SingleVariableDeclaration.NAME_PROPERTY) { ASTNode parent= node.getParent(); if (parent instanceof VariableDeclaration) { parent= parent.getParent(); return parent == null || !(parent instanceof FieldDeclaration); } } return false; } }
@Override public boolean consumes(SemanticToken token) { SimpleName node= token.getNode(); if (node.isDeclaration()) return false; IBinding binding= token.getBinding(); return binding != null && binding.getKind() == IBinding.METHOD && (binding.getModifiers() & Modifier.STATIC) == Modifier.STATIC; } }
@Override public boolean consumes(SemanticToken token) { SimpleName node = token.getNode(); if (node.isDeclaration()) { return false; } IBinding binding = token.getBinding(); return binding != null && binding.getKind() == IBinding.METHOD && (binding.getModifiers() & Modifier.STATIC) == Modifier.STATIC; } }
public boolean consumes(SemanticToken token) { SimpleName node= token.getNode(); if (node.isDeclaration()) return false; IBinding binding= token.getBinding(); return binding != null && binding.getKind() == IBinding.METHOD && (binding.getModifiers() & Modifier.STATIC) == Modifier.STATIC; } }
@Override public boolean consumes(SemanticToken token) { SimpleName node= token.getNode(); if (node.isDeclaration()) return false; IBinding binding= token.getBinding(); return binding != null && binding.getKind() == IBinding.METHOD && (binding.getModifiers() & Modifier.STATIC) == Modifier.STATIC; } }
@Override public boolean consumes(SemanticToken token) { // 1: match types in type parameter lists SimpleName name= token.getNode(); ASTNode node= name.getParent(); if (node.getNodeType() != ASTNode.SIMPLE_TYPE && node.getNodeType() != ASTNode.TYPE_PARAMETER) return false; // 2: match generic type variable references IBinding binding= token.getBinding(); return binding instanceof ITypeBinding && ((ITypeBinding) binding).isTypeVariable(); } }
@Override public boolean consumes(SemanticToken token) { // 1: match types in type parameter lists SimpleName name= token.getNode(); ASTNode node= name.getParent(); if (node.getNodeType() != ASTNode.SIMPLE_TYPE && node.getNodeType() != ASTNode.TYPE_PARAMETER) return false; // 2: match generic type variable references IBinding binding= token.getBinding(); return binding instanceof ITypeBinding && ((ITypeBinding) binding).isTypeVariable(); } }
public boolean consumes(SemanticToken token) { // 1: match types in type parameter lists SimpleName name= token.getNode(); ASTNode node= name.getParent(); if (node.getNodeType() != ASTNode.SIMPLE_TYPE && node.getNodeType() != ASTNode.TYPE_PARAMETER) return false; // 2: match generic type variable references IBinding binding= token.getBinding(); return binding instanceof ITypeBinding && ((ITypeBinding) binding).isTypeVariable(); } }
@Override public boolean consumes(SemanticToken token) { // 1: match types in type parameter lists SimpleName name = token.getNode(); ASTNode node = name.getParent(); if (node.getNodeType() != ASTNode.SIMPLE_TYPE && node.getNodeType() != ASTNode.TYPE_PARAMETER) { return false; } // 2: match generic type variable references IBinding binding = token.getBinding(); return binding instanceof ITypeBinding && ((ITypeBinding) binding).isTypeVariable(); } }