@Test public void testAcceptType() throws Exception { Value boolVar = getVM().mirrorOf(true); assertTrue("Should accept any type.", formatter.acceptType(boolVar.type(), new HashMap<>())); ObjectReference or = this.getObjectReference("Foo"); assertTrue("Should accept any type.", formatter.acceptType(null, new HashMap<>())); assertTrue("Should accept any type.", formatter.acceptType(or.type(), new HashMap<>())); ObjectReference str = this.getObjectReference("java.lang.String"); assertTrue("Should accept String type.", formatter.acceptType(str.referenceType(), new HashMap<>())); }
@Override public boolean acceptType(Type type, Map<String, Object> options) { return true; }
SimpleTypeFormatter implements ITypeFormatter { @Override public boolean acceptType(Type type, Map<String, Object> options) { return true; } }
SimpleTypeFormatter implements ITypeFormatter { @Override public boolean acceptType(Type type, Map<String, Object> options) { return true; }  }
SimpleTypeFormatter implements ITypeFormatter { @Override public boolean acceptType(Type type, Map<String, Object> options) { return true; }  @Override String toString(Object type, Map<String, Object> options); @Override boolean acceptType(Type type, Map<String, Object> options); @Override Map<String, Object> getDefaultOptions(); static String trimTypeName(String type); }
SimpleTypeFormatter implements ITypeFormatter { @Override public boolean acceptType(Type type, Map<String, Object> options) { return true; }  @Override String toString(Object type, Map<String, Object> options); @Override boolean acceptType(Type type, Map<String, Object> options); @Override Map<String, Object> getDefaultOptions(); static String trimTypeName(String type); static final String QUALIFIED_CLASS_NAME_OPTION; }