MCPcopy Index your code
hub / github.com/beanshell/beanshell / consumeInterface

Method consumeInterface

tests/src/InterfaceConsumer.java:6–13  ·  view source on GitHub ↗
( Interface interf )

Source from the content-addressed store, hash-verified

4 public InterfaceConsumer() { }
5
6 public boolean consumeInterface( Interface interf ) {
7 String s = interf.getString();
8 Integer i = interf.getInteger();
9 int i2 = interf.getPrimitiveInt();
10 boolean b = interf.getPrimitiveBool();
11 assertTrue( interf.getNull() == null );
12 return true;
13 }
14 public static void assertTrue( boolean cond ) {
15 if ( !cond ) throw new RuntimeException("assert failed..");
16 }

Callers

nothing calls this directly

Calls 6

assertTrueMethod · 0.95
getStringMethod · 0.65
getIntegerMethod · 0.65
getPrimitiveIntMethod · 0.65
getPrimitiveBoolMethod · 0.65
getNullMethod · 0.65

Tested by

no test coverage detected