at.dms.compiler
Class JavaStyleComment
java.lang.Object
at.dms.compiler.JavaStyleComment
- All Implemented Interfaces:
- DeepCloneable, Serializable
- Direct Known Subclasses:
- JavadocComment
public class JavaStyleComment
- extends Object
- implements Serializable, DeepCloneable
A simple character constant
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
text
protected String text
JavaStyleComment
protected JavaStyleComment()
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()
deepClone
public Object deepClone()
- Returns a deep clone of this object.
- Specified by:
deepClone
in interface DeepCloneable
deepCloneInto
protected void deepCloneInto(JavaStyleComment other)
- Clones all fields of this into
other