Class E_URI2

All Implemented Interfaces:
Expr

public class E_URI2 extends E_IRI2
This class is an alternative name for E_IRI2. See the javadoc for E_IRI2.
  • Constructor Details

    • E_URI2

      public E_URI2(String baseURI, Expr relExpr)
    • E_URI2

      public E_URI2(Expr baseExpr, String baseStr, Expr relExpr)
  • Method Details

    • getFunctionPrintName

      public String getFunctionPrintName(SerializationContext cxt)
      Description copied from class: ExprFunction
      Name used for output in SPARQL format needing functional form (no specific keyword). e.g. regexp(), custom functions, ...
      Overrides:
      getFunctionPrintName in class E_IRI2
    • copy

      public Expr copy(Expr expr1, Expr expr2)
      Overrides:
      copy in class E_IRI2
    • hashCode

      public int hashCode()
      Description copied from interface: Expr
      Expr are used in both syntax and algebra. There is no syntax to algebra translation step because the parser uses operator precedence to build the right evaluation structure directly.

      The exceptions to this are the NOT EXISTS and EXISTS expressions which involve a query pattern. As a result there are different ways in syntax to produce the same algebra form.

      Two Expr are considered equal if they are equal as algebra expressions. hashCode and equals must implement that.

      There is also equalsBySyntax. Because two different syntax forms can yield the same algebra, but two different algebra forms must be different syntax, equalsBySyntax implies equals (by algebra).

      Hence, different hashCode => not equalsBySyntax.

      Specified by:
      hashCode in interface Expr
      Overrides:
      hashCode in class E_IRI2
    • equals

      public boolean equals(Expr obj, boolean bySyntax)
      Description copied from interface: Expr
      General equality operation - consider this to be 'protected'
      Specified by:
      equals in interface Expr
      Overrides:
      equals in class E_IRI2