List of usage examples for org.eclipse.jdt.core.dom IBinding getModifiers
public int getModifiers();
From source file:at.bestsolution.fxide.jdt.corext.util.JdtFlags.java
License:Open Source License
public static boolean isPrivate(IBinding binding) { return Modifier.isPrivate(binding.getModifiers()); }
From source file:at.bestsolution.fxide.jdt.corext.util.JdtFlags.java
License:Open Source License
public static boolean isProtected(IBinding binding) { return Modifier.isProtected(binding.getModifiers()); }
From source file:at.bestsolution.fxide.jdt.corext.util.JdtFlags.java
License:Open Source License
public static boolean isPublic(IBinding binding) { if (isInterfaceOrAnnotationMember(binding)) return true; return Modifier.isPublic(binding.getModifiers()); }
From source file:ca.mcgill.cs.swevo.jayfx.ASTCrawler.java
License:Open Source License
/** * @param annoteElem/*from w w w . j av a 2 s. co m*/ * @param tBinding * @param annotatedElement */ private void addAnnotationRelation(final IElement annoteElem, final IBinding binding, final IElement annotatedElement) { this.aDB.addElement(annotatedElement, binding.getModifiers()); this.aDB.addRelation(annoteElem, Relation.ANNOTATES, annotatedElement); }
From source file:cc.kave.eclipse.namefactory.NodeFactory.java
License:Apache License
private static String modifierHelper(IBinding binding) { int modifier = binding.getModifiers(); if (Modifier.isStatic(modifier)) return "static "; else {/*from ww w. ja v a 2s . c o m*/ return ""; } }
From source file:changetypes.ASTVisitorAtomicChange.java
License:Open Source License
private static String getModifier(IBinding ib) { if ((ib.getModifiers() & 0x1) > 0) { return "public"; }//from ww w . j a v a2s . c om if ((ib.getModifiers() & 0x4) > 0) { return "protected"; } if ((ib.getModifiers() & 0x2) > 0) { return "private"; } return "package"; }
From source file:com.google.dart.java2dart.processor.LocalVariablesSemanticProcessor.java
License:Open Source License
private Expression getMemberQualifier(AstNode node) { IBinding binding = context.getNodeBinding(node); if (!Modifier.isStatic(binding.getModifiers())) { return thisExpression(); }/*from w w w . j a v a 2 s .c o m*/ if (binding instanceof IVariableBinding) { IVariableBinding variableBinding = (IVariableBinding) binding; String className = variableBinding.getDeclaringClass().getName(); return identifier(className); } if (binding instanceof IMethodBinding) { IMethodBinding methodBinding = (IMethodBinding) binding; String className = methodBinding.getDeclaringClass().getName(); return identifier(className); } throw new IllegalArgumentException("Field or method expected: " + binding); }
From source file:com.google.dart.java2dart.util.JavaUtils.java
License:Open Source License
private static boolean isStatic(IBinding binding) { return Modifier.isStatic(binding.getModifiers()); }
From source file:com.google.devtools.j2objc.ast.BodyDeclaration.java
License:Apache License
public BodyDeclaration(IBinding binding) { modifiers = binding.getModifiers(); }
From source file:com.google.devtools.j2objc.util.BindingUtil.java
License:Apache License
public static boolean isStatic(IBinding binding) { return Modifier.isStatic(binding.getModifiers()); }