List of usage examples for org.eclipse.jdt.internal.compiler.ast ASTNode HasFunctionalInterfaceTypes
int HasFunctionalInterfaceTypes
To view the source code for org.eclipse.jdt.internal.compiler.ast ASTNode HasFunctionalInterfaceTypes.
Click Source Link
From source file:org.eclipse.che.jdt.internal.core.search.indexing.SourceIndexer.java
License:Open Source License
private void purgeMethodStatements(TypeDeclaration type) { AbstractMethodDeclaration[] methods = type.methods; for (int j = 0, length = methods == null ? 0 : methods.length; j < length; j++) { AbstractMethodDeclaration method = methods[j]; if (method != null && (method.bits & ASTNode.HasFunctionalInterfaceTypes) == 0) { method.statements = null;/*from w w w . j a v a 2s.co m*/ method.javadoc = null; } } TypeDeclaration[] memberTypes = type.memberTypes; if (memberTypes != null) for (int i = 0, l = memberTypes.length; i < l; i++) purgeMethodStatements(memberTypes[i]); }