public static class DefaultCodeBuilder.BaseIdentifier extends DefaultCodeBuilder.BaseCode implements Code.Identifier, DefaultCodeBuilder.RecursionControlSupport
Code.Callable, Code.Constant, Code.EmptyFormatter, Code.Identifier, Code.Method
CALLABLE, CODES, CONSTANT, EMPTY_FORMATTER, IDENTIFIER, METHOD, UNDEFINED
Constructor and Description |
---|
BaseIdentifier(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
Code |
clone()
Creates a copy of the object.
|
int |
code() |
boolean |
enterCode(int max) |
void |
exitCode() |
java.lang.String |
name() |
void |
resetRecursionState() |
java.lang.String |
toString() |
java.lang.String |
toString(Formatter<Code> formatter) |
ExpressionBuilder.Value |
toValue(ExpressionBuilder builder) |
accept, accept, link, link, link, replace, toValue
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
name
isFunction, isIdentifier, link, link, link, replace, toValue
accept, accept
cloneQuietly, cloneQuietly
public Code clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in interface Code
clone
in class DefaultCodeBuilder.BaseCode
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public int code()
code
in interface Code
code
in class DefaultCodeBuilder.BaseCode
public java.lang.String name()
name
in interface Code.Identifier
public ExpressionBuilder.Value toValue(ExpressionBuilder builder)
toValue
in interface Code
toValue
in class DefaultCodeBuilder.BaseCode
public java.lang.String toString()
toString
in class java.lang.Object
public boolean enterCode(int max)
enterCode
in interface DefaultCodeBuilder.RecursionControlSupport
public void exitCode()
exitCode
in interface DefaultCodeBuilder.RecursionControlSupport
public void resetRecursionState()
resetRecursionState
in interface DefaultCodeBuilder.RecursionControlSupport