All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bigdata.rdf.sail.sparql.ast.ASTPathElt Maven / Gradle / Ivy

/* Generated By:JJTree: Do not edit this line. ASTPathElt.java Version 4.3 */
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
package com.bigdata.rdf.sail.sparql.ast;

import javax.swing.text.DefaultEditorKit.PasteAction;

import com.bigdata.rdf.sail.sparql.ast.ASTPathAlternative;
import com.bigdata.rdf.sail.sparql.ast.ASTPathMod;
import com.bigdata.rdf.sail.sparql.ast.ASTPathOneInPropertySet;
import com.bigdata.rdf.sail.sparql.ast.SimpleNode;
import com.bigdata.rdf.sail.sparql.ast.SyntaxTreeBuilder;
import com.bigdata.rdf.sail.sparql.ast.SyntaxTreeBuilderVisitor;
import com.bigdata.rdf.sail.sparql.ast.VisitorException;

public
class ASTPathElt extends SimpleNode {
  private boolean inverse;

public ASTPathElt(int id) {
    super(id);
  }

  public ASTPathElt(SyntaxTreeBuilder p, int id) {
    super(p, id);
  }


  /** Accept the visitor. **/
  public Object jjtAccept(SyntaxTreeBuilderVisitor visitor, Object data) throws VisitorException {
    return visitor.visit(this, data);
  }
  
  public void setInverse(boolean inverse) {
	  this.inverse = inverse;
  }
  
  public boolean isInverse() {
	  return this.inverse;
  }
  
  public boolean isNegatedPropertySet() {
	  return jjtGetChild(0) instanceof ASTPathOneInPropertySet;
  }
  
  public boolean isNestedPath() {
	  return jjtGetChild(0) instanceof ASTPathAlternative;
  }
  
  public ASTPathMod getPathMod() {
	  return jjtGetChild(ASTPathMod.class);
  }
}
/* JavaCC - OriginalChecksum=775f2a21c17018fa87a23bafe7b048dd (do not edit this line) */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy