org.multijava.util.compiler
Class JavaStyleComment
java.lang.Object
org.multijava.util.compiler.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
isLineComment
private final boolean isLineComment
spaceBefore
private final boolean spaceBefore
spaceAfter
private final boolean spaceAfter
EMPTY
public static final JavaStyleComment[] EMPTY
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 commentisLineComment - is this a "//"-style comment?spaceBefore - is there a space before this commentspaceAfter - is there a space after this comment
getText
public String getText()
isLineComment
public boolean isLineComment()
hadSpaceBefore
public boolean hadSpaceBefore()
hadSpaceAfter
public boolean hadSpaceAfter()
JML is Copyright (C) 1998-2002 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. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.