public class StringLiteral extends Literal implements ReferencePrefix
| Constructor and Description |
|---|
StringLiteral(ExtList children,
String value)
String literal.
|
StringLiteral(String value)
String literal.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
boolean |
equalsModRenaming(SourceElement o,
NameAbstractionTable nat)
commented in interface SourceElement.
|
KeYJavaType |
getKeYJavaType(Services javaServ)
retrieves the literal's type
|
Name |
getLDTName() |
ReferencePrefix |
getReferencePrefix()
We do not have a prefix, so fake it!
This way we implement ReferencePrefix
|
String |
getValue() |
int |
hashCode() |
void |
prettyPrint(PrettyPrinter p)
Pretty printing the source element.
|
ReferencePrefix |
setReferencePrefix(ReferencePrefix r) |
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, waitgetComments, matchgetEndPosition, getFirstElement, getFirstElementIncludingBlocks, getLastElement, getPositionInfo, getRelativePosition, getStartPositionprotected final String value
public StringLiteral(String value)
value - a string.public boolean equalsModRenaming(SourceElement o, NameAbstractionTable nat)
JavaProgramElementequalsModRenaming in interface SourceElementequalsModRenaming in class JavaProgramElementpublic int hashCode()
hashCode in class JavaProgramElementpublic boolean equals(Object o)
equals in class JavaProgramElementpublic String getValue()
public void visit(Visitor v)
visit in interface SourceElementv - the Visitorpublic void prettyPrint(PrettyPrinter p) throws IOException
JavaSourceElementprettyPrint in interface SourceElementprettyPrint in class JavaProgramElementp - a pretty printer.IOException - occasionally thrown.public ReferencePrefix getReferencePrefix()
getReferencePrefix in interface ReferencePrefixpublic ReferencePrefix setReferencePrefix(ReferencePrefix r)
public KeYJavaType getKeYJavaType(Services javaServ)
LiteralgetKeYJavaType in class LiteraljavaServ - the Services offering access to the Java modelpublic Name getLDTName()
getLDTName in class Literal