public class VariableSymbol extends AbstractSymbol implements PackageDescriptionFileSymbol
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
content
represents the content of the VariableSymbol.
|
| Constructor and Description |
|---|
VariableSymbol(java.lang.String content,
Position position)
This constructor instantiate the variable 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() |
PackageDescriptionFileSymbol |
toPackageDescriptionFileSymbol() |
java.lang.String |
toString() |
VariableSymbol |
toVariableSymbol() |
getPosition, isPathSymbol, isRowEndSymbol, isValueSymbol, toCommentSymbol, toOptionSymbol, toPathSymbol, toValueSymbolclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPosition, isPathSymbol, isRowEndSymbol, isValueSymbol, toCommentSymbol, toOptionSymbol, toPathSymbol, toValueSymbolprivate final transient java.lang.String content
public VariableSymbol(java.lang.String content,
Position position)
position - is the position of the data in the stream.content - is the content of the VariableState.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 VariableSymbol toVariableSymbol()
toVariableSymbol in interface PackageDescriptionFileSymboltoVariableSymbol in class AbstractSymbolpublic java.lang.Boolean isPackageDescriptionFileSymbol()
isPackageDescriptionFileSymbol in interface PackageDescriptionFileSymbolisPackageDescriptionFileSymbol in class AbstractSymbolpublic PackageDescriptionFileSymbol toPackageDescriptionFileSymbol()
toPackageDescriptionFileSymbol in interface PackageDescriptionFileSymboltoPackageDescriptionFileSymbol in class AbstractSymbol