List of usage examples for org.eclipse.jdt.internal.compiler.lookup TagBits AnnotationClassRetention
long AnnotationClassRetention
To view the source code for org.eclipse.jdt.internal.compiler.lookup TagBits AnnotationClassRetention.
Click Source Link
From source file:com.codenvy.ide.ext.java.server.internal.core.search.indexing.BinaryIndexer.java
License:Open Source License
private void addBinaryRetentionAnnotation(long bits) { char[][] compoundName = TypeConstants.JAVA_LANG_ANNOTATION_RETENTIONPOLICY; addTypeReference(compoundName[compoundName.length - 1]); if ((bits & TagBits.AnnotationRuntimeRetention) == TagBits.AnnotationRuntimeRetention) { addFieldReference(TypeConstants.UPPER_RUNTIME); } else if ((bits & TagBits.AnnotationClassRetention) != 0) { addFieldReference(TypeConstants.UPPER_CLASS); } else if ((bits & TagBits.AnnotationSourceRetention) != 0) { addFieldReference(TypeConstants.UPPER_SOURCE); }/*from w w w.j a v a 2s . c o m*/ }
From source file:org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.java
License:Open Source License
@Override public boolean hasClassRetention() { return (annotationBinding.getAnnotationType().tagBits & TagBits.AnnotationClassRetention) == TagBits.AnnotationClassRetention; }