@Test public void testVisitTypedLiteral$valid() throws Exception { LiteralAdapter<Number> nAdapter = LiteralAdapter.newInstance(Number.class); nAdapter.visitTypedLiteral(Literals.newTypedLiteral(1,Datatypes.STRING)); assertThat(nAdapter.adaptedValue(),equalTo((Number)1)); }
@Override public void visitTypedLiteral(TypedLiteral<?> literal) { adaptValue(literal.get()); }
LiteralAdapter implements LiteralVisitor { @Override public void visitTypedLiteral(TypedLiteral<?> literal) { adaptValue(literal.get()); } }
LiteralAdapter implements LiteralVisitor { @Override public void visitTypedLiteral(TypedLiteral<?> literal) { adaptValue(literal.get()); } private  LiteralAdapter(Class<? extends T> aClazz); }
LiteralAdapter implements LiteralVisitor { @Override public void visitTypedLiteral(TypedLiteral<?> literal) { adaptValue(literal.get()); } private  LiteralAdapter(Class<? extends T> aClazz); @Override void visitLiteral(Literal<?> literal); @Override void visitTypedLiteral(TypedLiteral<?> literal); @Override void visitLanguageLiteral(LanguageLiteral literal); }
LiteralAdapter implements LiteralVisitor { @Override public void visitTypedLiteral(TypedLiteral<?> literal) { adaptValue(literal.get()); } private  LiteralAdapter(Class<? extends T> aClazz); @Override void visitLiteral(Literal<?> literal); @Override void visitTypedLiteral(TypedLiteral<?> literal); @Override void visitLanguageLiteral(LanguageLiteral literal);  }