@Test public void testVisitLanguageLiteral$valid() throws Exception { LiteralAdapter<String> nAdapter = LiteralAdapter.newInstance(String.class); nAdapter.visitLanguageLiteral(Literals.newLanguageLiteral("1","en")); assertThat(nAdapter.adaptedValue(),equalTo("1")); }
@Override public void visitLanguageLiteral(LanguageLiteral literal) { adaptValue(literal.get()); }
LiteralAdapter implements LiteralVisitor { @Override public void visitLanguageLiteral(LanguageLiteral literal) { adaptValue(literal.get()); } }
LiteralAdapter implements LiteralVisitor { @Override public void visitLanguageLiteral(LanguageLiteral literal) { adaptValue(literal.get()); } private  LiteralAdapter(Class<? extends T> aClazz); }
LiteralAdapter implements LiteralVisitor { @Override public void visitLanguageLiteral(LanguageLiteral 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 visitLanguageLiteral(LanguageLiteral 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);  }