mjc

org.multijava.util.compiler
Class JavaStyleComment

java.lang.Object
  extended byorg.multijava.util.compiler.JavaStyleComment
Direct Known Subclasses:
JavadocComment

public class JavaStyleComment
extends Object

A simple character constant


Field Summary
static JavaStyleComment[] EMPTY
           
private  boolean isLineComment
           
private  boolean spaceAfter
           
private  boolean spaceBefore
           
protected  String text
           
 
Constructor Summary
JavaStyleComment(String text, boolean isLineComment, boolean spaceBefore, boolean spaceAfter)
          Construct a node in the parsing tree
 
Method Summary
 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

isLineComment

private final boolean isLineComment

spaceBefore

private final boolean spaceBefore

spaceAfter

private final boolean spaceAfter

EMPTY

public static final JavaStyleComment[] EMPTY
Constructor Detail

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
isLineComment - is this a "//"-style comment?
spaceBefore - is there a space before this comment
spaceAfter - is there a space after this comment
Method Detail

getText

public String getText()

isLineComment

public boolean isLineComment()

hadSpaceBefore

public boolean hadSpaceBefore()

hadSpaceAfter

public boolean hadSpaceAfter()

mjc

mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.