jsutil.compress
Class JSCStep

java.lang.Object
  |
  +--xbn.XBNObject
        |
        +--jsutil.compress.JSCStep

public class JSCStep
extends XBNObject

A single step in a JavaScript file's compression process.

Source code:  JSCStep.java


Fields inherited from class xbn.XBNObject
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP
 
Constructor Summary
JSCStep(String s_name, int i_sourceLength, String s_descHtml)
          Create a JSCStep.
 
Method Summary
 int getByteSize()
          Get the byte-count for this step.
 String getDescHtml()
          Get the HTML description for this step.
 String getName()
          Get the name of this JSCStep.
 String toString()
          Get some information about this JSCStep.
 
Methods inherited from class xbn.XBNObject
getXMsgPrefix, sop, sopl, sopl, throwAX, throwAXIfBadStr, throwAXIfNull, throwAXSpoof
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSCStep

public JSCStep(String s_name,
               int i_sourceLength,
               String s_descHtml)

Create a JSCStep.

Parameters:
s_name - The descriptive name for this step. May not be null or zero characters in length. Consider using this as the postfix for outputting each step (before the '.js'). If you choose to do this, don't put any characters that would be illegal in a file name.
i_sourceLength - The byte-length of the source code. May not be less than 1.
s_descHtml - The HTML description for the original file. May not be null, zero characters in length. It is assumed that this contains no tab, or newline characters. This is only used by the constructor.
Method Detail

getName

public final String getName()

Get the name of this JSCStep.

Returns:
s_name, exactly as provided to the constructor.

getByteSize

public final int getByteSize()

Get the byte-count for this step.

Returns:
i_sourceLength, exactly as provided to the constructor.

getDescHtml

public final String getDescHtml()

Get the HTML description for this step.

Returns:
s_descHtml, exactly as provided to the constructor.

toString

public final String toString()

Get some information about this JSCStep.

Overrides:
toString in class Object



Copyright 2003-2005, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.

 

http://sourceforge.net/projects/jsutiljava

 

SourceForge.net Logo