@Test public void testVisitLiteral$typedLiteral$doesNotMatch() throws Exception { LiteralValueExtractor<Number> extractor = LiteralValueExtractor.newInstance(Number.class); extractor.visitLiteral(Literals.newTypedLiteral("test",Datatypes.STRING)); assertThat(extractor.getValue(),nullValue()); assertThat(extractor.isAvailable(),equalTo(false)); }
@Override public void visitLiteral(Literal<?> value) { value.accept(this.adapter); this.value=this.adapter.adaptedValue(); }
LiteralValueExtractor implements ValueVisitor { @Override public void visitLiteral(Literal<?> value) { value.accept(this.adapter); this.value=this.adapter.adaptedValue(); } }
LiteralValueExtractor implements ValueVisitor { @Override public void visitLiteral(Literal<?> value) { value.accept(this.adapter); this.value=this.adapter.adaptedValue(); } private  LiteralValueExtractor(LiteralAdapter<T> adapter); }
LiteralValueExtractor implements ValueVisitor { @Override public void visitLiteral(Literal<?> value) { value.accept(this.adapter); this.value=this.adapter.adaptedValue(); } private  LiteralValueExtractor(LiteralAdapter<T> adapter); @Override void visitLiteral(Literal<?> value); @Override void visitIndividual(Individual<?, ?> value); }
LiteralValueExtractor implements ValueVisitor { @Override public void visitLiteral(Literal<?> value) { value.accept(this.adapter); this.value=this.adapter.adaptedValue(); } private  LiteralValueExtractor(LiteralAdapter<T> adapter); @Override void visitLiteral(Literal<?> value); @Override void visitIndividual(Individual<?, ?> value);  }