Module org.postgresql.pljava
Package org.postgresql.pljava.sqlgen
Class Lexicals.Identifier.Operator
java.lang.Object
org.postgresql.pljava.sqlgen.Lexicals.Identifier
org.postgresql.pljava.sqlgen.Lexicals.Identifier.Unqualified<Lexicals.Identifier.Operator>
org.postgresql.pljava.sqlgen.Lexicals.Identifier.Operator
- All Implemented Interfaces:
Serializable
- Enclosing class:
Lexicals.Identifier
public static class Lexicals.Identifier.Operator
extends Lexicals.Identifier.Unqualified<Lexicals.Identifier.Operator>
Class representing an Identifier that names a PostgreSQL operator.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.postgresql.pljava.sqlgen.Lexicals.Identifier
Lexicals.Identifier.Operator, Lexicals.Identifier.Pseudo, Lexicals.Identifier.Qualified<T extends Lexicals.Identifier.Unqualified<T>>, Lexicals.Identifier.Simple, Lexicals.Identifier.Unqualified<T extends Lexicals.Identifier.Unqualified<T>> -
Method Summary
Modifier and TypeMethodDescriptionThis Identifier represented as it would be in SQL source.deparse(Lexicals.Identifier.Simple qualifier, Charset cs) Produce the deparsed form of a qualified identifier with the given qualifier and this as the local part.booleanFor use in an annotation processor, a version ofequalsthat can take aMessagerand use it to emit warnings.static Lexicals.Identifier.OperatorCreate anIdentifier.Operatorfrom a name string.static Lexicals.Identifier.OperatorCreate anIdentifier.Operatorfrom a name string.inthashCode()Returns a hash code value for the object.withQualifier(Lexicals.Identifier.Simple qualifier) Form anIdentifier.Qualifiedwith this as the local part.Methods inherited from class org.postgresql.pljava.sqlgen.Lexicals.Identifier
equals, toString
-
Method Details
-
from
Create anIdentifier.Operatorfrom a name string.Equivalent to
from(s, null). -
from
Create anIdentifier.Operatorfrom a name string.There are not different ways to represent an operator in Java source and in the PostgreSQL catalogs, so there do not need to be
fromCatalogandfromJavaflavors of this method.- Parameters:
name- The operator name.msgr- a Messager for reporting diagnostics at compile time, or null if not in a compilation context.
-
withQualifier
public Lexicals.Identifier.Qualified<Lexicals.Identifier.Operator> withQualifier(Lexicals.Identifier.Simple qualifier) Description copied from class:Lexicals.Identifier.UnqualifiedForm anIdentifier.Qualifiedwith this as the local part.- Specified by:
withQualifierin classLexicals.Identifier.Unqualified<Lexicals.Identifier.Operator>
-
hashCode
public int hashCode()Returns a hash code value for the object. -
equals
Description copied from class:Lexicals.IdentifierFor use in an annotation processor, a version ofequalsthat can take aMessagerand use it to emit warnings. It will emit a warning whenever it compares two Identifiers that are equal by one or the other of PostgreSQL's or ISO SQL's rules but not both.- Specified by:
equalsin classLexicals.Identifier- Parameters:
other- Object to compare tomsgr- a Messager to use for warnings; ifnull, no warnings will be generated.- Returns:
- true if two quoted Identifiers match exactly, or two non-quoted ones match in either the PostgreSQL or ISO SQL folded form, or a quoted one exactly matches either folded form of a non-quoted one.
-
deparse
Description copied from class:Lexicals.IdentifierThis Identifier represented as it would be in SQL source.The passed
Charsetindicates the character encoding in which the deparsed result will be stored; the method should verify that the characters can be encoded there, or use the Unicode delimited identifier form and escape the ones that cannot.- Specified by:
deparsein classLexicals.Identifier- Returns:
- The identifier, quoted, unless it is folding.
-
deparse
Description copied from class:Lexicals.Identifier.UnqualifiedProduce the deparsed form of a qualified identifier with the given qualifier and this as the local part.- Specified by:
deparsein classLexicals.Identifier.Unqualified<Lexicals.Identifier.Operator>
-