org.jostraca.transform
Class SimpleIndentTransform

java.lang.Object
  extended byorg.jostraca.transform.TextualTransformSupport
      extended byorg.jostraca.transform.SimpleIndentTransform
All Implemented Interfaces:
TextualTransform

public class SimpleIndentTransform
extends TextualTransformSupport

Description:
Format C like source code in a very simple and highly ambiguous way. That is, this just about works! :)


Field Summary
 
Fields inherited from class org.jostraca.transform.TextualTransformSupport
iAttributes, iNeedsReparse, iOpenScriptMarker
 
Fields inherited from interface org.jostraca.transform.TextualTransform
ATTR_sectionset, ATTR_unit_attr, ATTR_unit_origin, ATTR_unit_set, NEWLINE
 
Constructor Summary
SimpleIndentTransform()
           
 
Method Summary
 java.lang.String formatCode(java.lang.String pCode)
          Format code (very simple minded).
 java.lang.String transform(java.lang.String pFrom)
          Transform the supplied String.
 
Methods inherited from class org.jostraca.transform.TextualTransformSupport
checkForReparse, getName, needsReparse, setParameters, setParameters, setParametersImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleIndentTransform

public SimpleIndentTransform()
Method Detail

transform

public java.lang.String transform(java.lang.String pFrom)
Description copied from interface: TextualTransform
Transform the supplied String. Return Standard.EMPTY as default in case of failure.

Specified by:
transform in interface TextualTransform
Specified by:
transform in class TextualTransformSupport
See Also:
TextualTransform

formatCode

public java.lang.String formatCode(java.lang.String pCode)
Format code (very simple minded).

Parameters:
pCode - Code to format.


Copyright © 2000-2002 Richard Rodger