- java.lang.Object
-
- de.carne.mcd.jvmdecoder.classfile.PrintSeparator
-
-
Constructor Summary
Constructors Constructor Description PrintSeparator()Constructs a new PrintSeparator instance using the comma separator.PrintSeparator(java.lang.String separator)Constructs a new PrintSeparator instance using the given separator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringnext()Gets the separator for the next print operation.voidprint(ClassPrinter out, ClassContext context)Prints this instance.voidreset()Resets this instance to start a new sequence of print operations.
-
-
-
Constructor Detail
-
PrintSeparator
public PrintSeparator()
Constructs a new PrintSeparator instance using the comma separator.
-
PrintSeparator
public PrintSeparator(java.lang.String separator)
Constructs a new PrintSeparator instance using the given separator.- Parameters:
separator- the separator to use.
-
-
Method Detail
-
reset
public void reset()
Resets this instance to start a new sequence of print operations.
-
print
public void print(ClassPrinter out, ClassContext context) throws java.io.IOException
Description copied from interface:PrintablePrints this instance.- Specified by:
printin interfacePrintable- Parameters:
out- the ClassPrinter instance to print to.context- the context of this print invocation.- Throws:
java.io.IOException- if an I/O error occurs.
-
next
public java.lang.String next()
Gets the separator for the next print operation.- Returns:
- the separator for the next print operation.
-
-