MCPcopy Create free account
hub / github.com/beanshell/beanshell / isVisible

Method isVisible

src/bsh/ClassGenerator.java:226–238  ·  view source on GitHub ↗
(SimpleNode node)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

isStaticMethod · 0.95

Tested by

no test coverage detected