Tabnine Logo
OptionalBlock
Code IndexAdd Tabnine to your IDE (free)

How to use
OptionalBlock
in
com.mysema.rdfbean.model

Best Java code snippets using com.mysema.rdfbean.model.OptionalBlock (Showing top 7 results out of 315)

origin: com.mysema.rdf/rdfbean-core

public static OptionalBlock optional(List<Block> blocks, Predicate... predicates) {
  return new OptionalBlock(blocks, predicates);
}
origin: com.mysema.rdf/rdfbean-core

@Override
public Void visit(OptionalBlock expr, Void context) {
  handle(expr.getBlocks());
  handle(expr.getFilters());
  return null;
}
origin: com.mysema.rdf/rdfbean-core

@SuppressWarnings("unchecked")
@Override
public <R, C> R accept(Visitor<R, C> v, C context) {
  if (v instanceof RDFVisitor) {
    return (R) ((RDFVisitor) v).visit(this, context);
  } else if (v instanceof ToStringVisitor) {
    return (R) toString();
  } else if (v.getClass().getName().equals("com.mysema.query.types.ExtractorVisitor")) {
    return (R) this;
  } else {
    throw new IllegalArgumentException(v.toString());
  }
}
origin: com.mysema.rdf/rdfbean-core

@Test
public void Exists() {
  assertEquals("exists OPTIONAL { {s} {p} {o} {c} .  }", Blocks.optional(Blocks.SPOC).exists().toString());
}
origin: com.mysema.rdf/rdfbean-core

@Nullable
public Void visit(OptionalBlock expr, @Nullable Void context) {
  lastPattern = null;
  append("OPTIONAL { ");
  visitBlocks(expr.getBlocks());
  visitFilter(expr.getFilters());
  append("} ");
  lastPattern = null;
  return null;
}
origin: com.mysema.rdf/rdfbean-core

public static OptionalBlock optional(Block... blocks) {
  return new OptionalBlock(Arrays.asList(blocks));
}
origin: com.mysema.rdf/rdfbean-core

public static OptionalBlock optionalFilter(Block block, Predicate... predicates) {
  return new OptionalBlock(Collections.singletonList(block), predicates);
}
com.mysema.rdfbean.modelOptionalBlock

Most used methods

  • <init>
  • exists
  • getBlocks
  • getFilters
  • toString

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • setContentView (Activity)
  • getSystemService (Context)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JComboBox (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now