at.dms.compiler.tools.common
Class JavaStyleComment
java.lang.Object
at.dms.compiler.tools.common.JavaStyleComment
- Direct Known Subclasses:
- JavadocComment
public class JavaStyleComment
- extends Object
A simple character constant
Constructor Summary |
JavaStyleComment(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 String text
JavaStyleComment
public JavaStyleComment(String text,
boolean isLineComment,
boolean spaceBefore,
boolean spaceAfter)
- Construct a node in the parsing tree
- Parameters:
text
- the string representation of this comment
!!! COMPLETE params
getText
public String getText()
isLineComment
public boolean isLineComment()
hadSpaceBefore
public boolean hadSpaceBefore()
hadSpaceAfter
public boolean hadSpaceAfter()