public class Identifier extends Object
Constructor and Description |
---|
Identifier(String name,
boolean quoted)
Constructs an identifier instance.
|
Modifier and Type | Method and Description |
---|---|
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(Object o) |
String |
getName()
Get the identifiers name (text)
|
int |
hashCode() |
boolean |
isQuoted()
Is this a quoted identifier>
|
static boolean |
isQuoted(String name) |
static Identifier |
toIdentifier(String name)
Means to generate an
Identifier instance from its simple name |
String |
toString() |
public Identifier(String name, boolean quoted)
name
- The identifier text.quoted
- Is this a quoted identifier?public static Identifier toIdentifier(String name)
Identifier
instance from its simple namename
- The namepublic static boolean isQuoted(String name)
public String getName()
public boolean isQuoted()
public String encloseInQuotesIfQuoted(Dialect dialect)
dialect
- The dialect whose dialect-specific quoting should be used.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.