at.dms.compiler
Class JavaStyleComment

java.lang.Object
  extended by 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

Field Summary
protected  String text
           
 
Constructor Summary
protected JavaStyleComment()
           
  JavaStyleComment(String text, boolean isLineComment, boolean spaceBefore, boolean spaceAfter)
          Construct a node in the parsing tree
 
Method Summary
 Object deepClone()
          Returns a deep clone of this object.
protected  void deepCloneInto(JavaStyleComment other)
          Clones all fields of this into
 String getText()
           
 boolean hadSpaceAfter()
           
 boolean hadSpaceBefore()
           
 boolean isLineComment()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

protected String text
Constructor Detail

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
Method Detail

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