(SimpleNode node)
| 224 | |
| 225 | |
| 226 | public boolean isVisible(SimpleNode node) { |
| 227 | if (context == CLASSES) return node instanceof BSHClassDeclaration; |
| 228 | |
| 229 | // Only show class decs in CLASSES |
| 230 | if (node instanceof BSHClassDeclaration) return false; |
| 231 | |
| 232 | if (context == STATIC) return isStatic(node); |
| 233 | |
| 234 | if (context == INSTANCE) return !isStatic(node); |
| 235 | |
| 236 | // ALL |
| 237 | return true; |
| 238 | } |
| 239 | |
| 240 | |
| 241 | boolean isStatic(SimpleNode node) { |