|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.common.Emit scale.common.EmitToString
public class EmitToString
A class for emitting code sequences to a string.
$Id: EmitToString.java,v 1.10 2005-02-07 21:28:21 burrill Exp $
Copyright 2005 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
Field Summary |
---|
Fields inherited from class scale.common.Emit |
---|
currentColumn, currentLine, lineStart, numIndent, spaces |
Constructor Summary | |
---|---|
EmitToString(java.lang.StringBuffer pw,
int indent)
Create a class to use in writing out generated code. |
Method Summary | |
---|---|
void |
emit(char c)
Print a char to the output. |
void |
emit(int n)
Print an integer to the output. |
void |
emit(long n)
Print a long to the output. |
void |
emit(java.lang.String s)
Print a string to the output. |
void |
endLine()
Signal the end of the current line and start a new one. |
Methods inherited from class scale.common.Emit |
---|
decIndLevel, getCurrentColumn, getCurrentLine, incIndLevel, indent, newLine, setIndentation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmitToString(java.lang.StringBuffer pw, int indent)
pw
- is the stream to which the code is writtenindent
- is the number of spaces to indentMethod Detail |
---|
public void emit(java.lang.String s)
emit
in class Emit
public void emit(int n)
emit
in class Emit
public void emit(long n)
emit
in class Emit
public void emit(char c)
emit
in class Emit
public void endLine()
endLine
in class Emit
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |