public abstract class Symbol extends Object implements LanguageObject
LanguageObject.Util
Modifier and Type | Field and Description |
---|---|
protected String |
outputName
Prior to resolving null, after resolving it is the exact string
entered in the query.
|
static String |
SEPARATOR
Character used to delimit name components in a symbol
|
Constructor and Description |
---|
Symbol() |
Symbol(String name)
Construct a symbol with a name.
|
Modifier and Type | Method and Description |
---|---|
abstract Object |
clone()
Return a copy of this object.
|
boolean |
equals(Object obj)
Compare the symbol based ONLY on name.
|
String |
getName()
Get the name of the symbol
|
static String |
getName(Expression ex) |
String |
getOutputName() |
static String |
getOutputName(Expression ex) |
String |
getShortName()
Get the short name of the element
|
static String |
getShortName(Expression ex) |
static String |
getShortName(String name) |
int |
hashCode()
Return a hash code for this symbol.
|
protected void |
setName(String name) |
void |
setOutputName(String outputName) |
void |
setShortName(String name)
Change the symbol's name.
|
String |
toString()
Returns string representation of this symbol.
|
finalize, getClass, notify, notifyAll, wait, wait, wait
acceptVisitor
protected String outputName
public static final String SEPARATOR
public Symbol(String name)
name
- Name of the symbolIllegalArgumentException
- If name is nullpublic Symbol()
protected void setName(String name)
public void setShortName(String name)
name
- New namepublic String getName()
public String toString()
public int hashCode()
public boolean equals(Object obj)
public abstract Object clone()
clone
in interface LanguageObject
clone
in class Object
public String getOutputName()
public void setOutputName(String outputName)
public final String getShortName()
public static String getShortName(Expression ex)
public static String getName(Expression ex)
public static String getOutputName(Expression ex)
Copyright © 2019. All rights reserved.