public class Reference extends Object implements Expression, ContextReference
Modifier and Type | Class and Description |
---|---|
static interface |
Reference.Constraint |
LanguageObject.Util
Constructor and Description |
---|
Reference(ElementSymbol expression)
Constructor for an element Reference.
|
Reference(int refIndex)
Constructor for a positional Reference.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
Object |
clone()
Implement clone to make objects cloneable.
|
boolean |
equals(Object obj)
Compare this constant to another constant for equality.
|
Reference.Constraint |
getConstraint() |
String |
getContextSymbol() |
ElementSymbol |
getExpression() |
int |
getIndex() |
Class<?> |
getType()
Get the return type of this expression.
|
int |
hashCode()
Define hash code to be that of the underlying object to make it stable.
|
boolean |
isCorrelated() |
boolean |
isOptional() |
boolean |
isPositional() |
void |
setConstraint(Reference.Constraint constraint) |
void |
setExpression(ElementSymbol expression) |
void |
setOptional(boolean optional) |
void |
setType(Class<?> type) |
String |
toString()
Return a String representation of this object using SQLStringVisitor.
|
public Reference(int refIndex)
public Reference(ElementSymbol expression)
public Reference.Constraint getConstraint()
public void setConstraint(Reference.Constraint constraint)
public int getIndex()
public String getContextSymbol()
getContextSymbol
in interface ContextReference
public ElementSymbol getExpression()
public Class<?> getType()
Expression
getType
in interface Expression
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor
in interface LanguageObject
visitor
- Visitor being usedpublic Object clone()
LanguageObject
clone
in interface LanguageObject
clone
in class Object
Object.clone()
public boolean equals(Object obj)
public void setType(Class<?> type)
public int hashCode()
public String toString()
public boolean isCorrelated()
public boolean isPositional()
public void setExpression(ElementSymbol expression)
public boolean isOptional()
public void setOptional(boolean optional)
Copyright © 2019. All rights reserved.