public class Identifier
extends java.lang.Object
| Constructor and Description |
|---|
Identifier(java.lang.String name,
boolean quoted)
Constructs an identifier instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
encloseInQuotesIfQuoted(Dialect dialect)
If this is a quoted identifier, then return the identifier name
enclosed in dialect-specific open- and end-quotes; otherwise,
simply return the identifier name.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName()
Get the identifiers name (text)
|
int |
hashCode() |
boolean |
isQuoted()
Is this a quoted identifier>
|
static boolean |
isQuoted(java.lang.String name) |
static Identifier |
toIdentifier(java.lang.String name)
Means to generate an
Identifier instance from its simple name |
java.lang.String |
toString() |
public Identifier(java.lang.String name,
boolean quoted)
name - The identifier text.quoted - Is this a quoted identifier?public static Identifier toIdentifier(java.lang.String name)
Identifier instance from its simple namename - The namepublic static boolean isQuoted(java.lang.String name)
public java.lang.String getName()
public boolean isQuoted()
public java.lang.String encloseInQuotesIfQuoted(Dialect dialect)
dialect - The dialect whose dialect-specific quoting should be used.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.