public class CharLiteral extends Literal
| Modifier and Type | Field and Description |
|---|---|
private char |
charVal |
protected String |
value |
| Constructor and Description |
|---|
CharLiteral(char value)
Char literal.
|
CharLiteral(ExtList children,
String value)
Char literal.
|
CharLiteral(String value)
Char literal.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
boolean |
equalsModRenaming(SourceElement o,
NameAbstractionTable nat)
tests if equals
|
char |
getCharValue() |
KeYJavaType |
getKeYJavaType(Services javaServ)
retrieves the literal's type
|
Name |
getLDTName() |
String |
getValue()
Get value.
|
int |
hashCode() |
void |
prettyPrint(PrettyPrinter p)
Pretty printing the source element.
|
void |
visit(Visitor v)
calls the corresponding method of a visitor in order to
perform some action/transformation on this element
|
getKeYJavaType, matchgetComments, prettyPrintMain, reuseSignaturegetEndPosition, getFirstElement, getFirstElementIncludingBlocks, getLastElement, getParentClass, getPositionInfo, getRelativePosition, getStartPosition, setParentClass, toSource, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCommentsgetEndPosition, getFirstElement, getFirstElementIncludingBlocks, getLastElement, getPositionInfo, getRelativePosition, getStartPositionprotected final String value
private char charVal
public CharLiteral(char value)
value - a char value.public CharLiteral(ExtList children, String value)
children - an ExtList with all children(comments)
May contain: Commentsvalue - a string.public CharLiteral(String value)
value - a string.public boolean equalsModRenaming(SourceElement o, NameAbstractionTable nat)
equalsModRenaming in interface SourceElementequalsModRenaming in class JavaProgramElementpublic int hashCode()
hashCode in class JavaProgramElementpublic boolean equals(Object o)
equals in class JavaProgramElementpublic String getValue()
public char getCharValue()
public void visit(Visitor v)
v - the Visitorpublic void prettyPrint(PrettyPrinter p) throws IOException
JavaSourceElementprettyPrint in interface SourceElementprettyPrint in class JavaProgramElementp - a pretty printer.IOException - occasionally thrown.public KeYJavaType getKeYJavaType(Services javaServ)
LiteralgetKeYJavaType in class LiteraljavaServ - the Services offering access to the Java modelpublic Name getLDTName()
getLDTName in class Literal