at.dms.compiler
Class JavaStyleComment
java.lang.Object
|
+--at.dms.compiler.JavaStyleComment
- Direct Known Subclasses:
- JavadocComment
- public class JavaStyleComment
- extends java.lang.Object
A simple character constant
Field Summary |
protected java.lang.String |
text
|
Constructor Summary |
JavaStyleComment(java.lang.String text,
boolean isLineComment,
boolean spaceBefore,
boolean spaceAfter)
Construct a node in the parsing tree |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
text
protected java.lang.String text
JavaStyleComment
public JavaStyleComment(java.lang.String text,
boolean isLineComment,
boolean spaceBefore,
boolean spaceAfter)
- Construct a node in the parsing tree
- Parameters:
text
- the string representation of this comment!!!
- COMPLETE
getText
public java.lang.String getText()
isLineComment
public boolean isLineComment()
hadSpaceBefore
public boolean hadSpaceBefore()
hadSpaceAfter
public boolean hadSpaceAfter()