ASTFieldDeclaration extends AbstractJavaAccessTypeNode implements Dimensionable, SignedNode<ASTFieldDeclaration>, Iterable<ASTVariableDeclaratorId> { public boolean isSyntacticallyPublic() { return super.isPublic(); } @InternalApi @Deprecated  ASTFieldDeclaration(int id); @InternalApi @Deprecated  ASTFieldDeclaration(JavaParser p, int id); @Override Object jjtAccept(JavaParserVisitor visitor, Object data); boolean isSyntacticallyPublic(); @Override boolean isPublic(); boolean isSyntacticallyStatic(); @Override boolean isStatic(); boolean isSyntacticallyFinal(); @Override boolean isFinal(); @Override boolean isPrivate(); @Override boolean isPackagePrivate(); @Override boolean isProtected(); boolean isAnnotationMember(); boolean isInterfaceMember(); @Override @Deprecated boolean isArray(); @Override @Deprecated int getArrayDepth(); @Deprecated @DeprecatedAttribute(replaceWith = "VariableDeclaratorId/@Name") String getVariableName(); @Override JavaFieldSignature getSignature(); @Override Iterator<ASTVariableDeclaratorId> iterator(); @Override @Deprecated Class<?> getType(); @Override @Deprecated JavaTypeDefinition getTypeDefinition();  }
@Test public void testIsSyntacticallyPublic() { ASTCompilationUnit cu = java.parse(TEST3); ASTFieldDeclaration node = cu.findDescendantsOfType(ASTFieldDeclaration.class).get(0); assertFalse(node.isSyntacticallyPublic()); assertFalse(node.isPackagePrivate()); assertFalse(node.isPrivate()); assertFalse(node.isProtected()); assertTrue(node.isFinal()); assertTrue(node.isStatic()); assertTrue(node.isPublic()); }