public class CommentSymbol extends AbstractSymbol implements PackageDescriptionFileSymbol
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
text
This attribute is commenttext.
|
| Constructor and Description |
|---|
CommentSymbol(java.lang.String text,
Position position)
This constructor instantiate a new CommentSymbol with @param text.
|
| 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 |
getText() |
int |
hashCode() |
java.lang.Boolean |
isPackageDescriptionFileSymbol() |
CommentSymbol |
toCommentSymbol() |
PackageDescriptionFileSymbol |
toPackageDescriptionFileSymbol() |
java.lang.String |
toString() |
getPosition, isPathSymbol, isRowEndSymbol, isValueSymbol, toOptionSymbol, toPathSymbol, toValueSymbol, toVariableSymbolclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPosition, isPathSymbol, isRowEndSymbol, isValueSymbol, toOptionSymbol, toPathSymbol, toValueSymbol, toVariableSymbolpublic CommentSymbol(java.lang.String text,
Position position)
text - is the text of the comment.position - is the position of the data in the stream.public java.lang.String getText()
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 java.lang.Boolean isPackageDescriptionFileSymbol()
isPackageDescriptionFileSymbol in interface PackageDescriptionFileSymbolisPackageDescriptionFileSymbol in class AbstractSymbolpublic CommentSymbol toCommentSymbol()
toCommentSymbol in interface PackageDescriptionFileSymboltoCommentSymbol in class AbstractSymbolpublic PackageDescriptionFileSymbol toPackageDescriptionFileSymbol()
toPackageDescriptionFileSymbol in interface PackageDescriptionFileSymboltoPackageDescriptionFileSymbol in class AbstractSymbol