public class ValueSymbol extends AbstractSymbol implements PackageDescriptionFileSymbol
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
content
represents the content of the ValueSymbol.
|
| Constructor and Description |
|---|
ValueSymbol(java.lang.String content,
Position position)
This constructor instantiate the value symbol.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractPackageParserState |
accept(PackageDescriptionSymbolVisitor visitor,
PackageDescriptionFileParser parser)
calls the visitor with the Symbollist.
|
AbstractPackageParserState |
accept(PackageDescriptionSymbolVisitorWithTempRule visitor,
PackageDescriptionFileParser parser,
TempPackageRule tempPackageRule)
calls the visitor with the Symbollist.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContent() |
int |
hashCode() |
java.lang.Boolean |
isPackageDescriptionFileSymbol() |
java.lang.Boolean |
isValueSymbol() |
PackageDescriptionFileSymbol |
toPackageDescriptionFileSymbol() |
java.lang.String |
toString() |
ValueSymbol |
toValueSymbol() |
getPosition, isPathSymbol, isRowEndSymbol, toCommentSymbol, toOptionSymbol, toPathSymbol, toVariableSymbolclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPosition, isPathSymbol, isRowEndSymbol, toCommentSymbol, toOptionSymbol, toPathSymbol, toVariableSymbolprivate final transient java.lang.String content
public ValueSymbol(java.lang.String content,
Position position)
position - is the position of the data in the stream.content - is the content of the ValueState.public java.lang.String getContent()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class AbstractSymbolpublic int hashCode()
hashCode in class AbstractSymbolpublic AbstractPackageParserState accept(PackageDescriptionSymbolVisitor visitor, PackageDescriptionFileParser parser) throws java.lang.InterruptedException, ParserException
PackageDescriptionFileSymbolaccept in interface PackageDescriptionFileSymbolvisitor - is the called visitor.parser - This is the PackageDescriptionparser.java.lang.InterruptedException - from the Buffer.ParserException - if the symbol is not expected.public AbstractPackageParserState accept(PackageDescriptionSymbolVisitorWithTempRule visitor, PackageDescriptionFileParser parser, TempPackageRule tempPackageRule) throws java.lang.InterruptedException, ParserException
PackageDescriptionFileSymbolaccept in interface PackageDescriptionFileSymbolvisitor - is the called visitor.parser - This is the PackageDescriptionparser.tempPackageRule - is a temporary package rule.java.lang.InterruptedException - from the Buffer.ParserException - if the symbol is not expected.public ValueSymbol toValueSymbol()
toValueSymbol in interface PackageDescriptionFileSymboltoValueSymbol in class AbstractSymbolpublic java.lang.Boolean isValueSymbol()
isValueSymbol in interface PackageDescriptionFileSymbolisValueSymbol in class AbstractSymbolpublic java.lang.Boolean isPackageDescriptionFileSymbol()
isPackageDescriptionFileSymbol in interface PackageDescriptionFileSymbolisPackageDescriptionFileSymbol in class AbstractSymbolpublic PackageDescriptionFileSymbol toPackageDescriptionFileSymbol()
toPackageDescriptionFileSymbol in interface PackageDescriptionFileSymboltoPackageDescriptionFileSymbol in class AbstractSymbol