Public Member Functions | Public Attributes | Private Member Functions
jsmin.JavascriptMinify Class Reference

List of all members.

Public Member Functions

def minify

Public Attributes

 instream
 outstream
 thaB
 theA
 theB
 theLookahead

Private Member Functions

def _action
def _get
def _jsmin
def _next
def _outA
def _outB
def _peek

Detailed Description

Definition at line 60 of file jsmin.py.


Member Function Documentation

def jsmin.JavascriptMinify._action (   self,
  action 
) [private]
do something! What you do is determined by the argument:
   1   Output A. Copy B to A. Get the next B.
   2   Copy B to A. Get the next B. (Delete A).
   3   Get the next B. (Delete B).
   action treats a string as a single character. Wow!
   action recognizes a regular expression if it is preceded by ( or , or =.

Definition at line 113 of file jsmin.py.

def jsmin.JavascriptMinify._get (   self) [private]
return the next character from stdin. Watch out for lookahead. If
   the character is a control character, translate it to a space or
   linefeed.

Definition at line 67 of file jsmin.py.

def jsmin.JavascriptMinify._jsmin (   self) [private]
Copy the input to the output, deleting the characters which are
   insignificant to JavaScript. Comments will be removed. Tabs will be
   replaced with spaces. Carriage returns will be replaced with linefeeds.
   Most spaces and linefeeds will be removed.

Definition at line 161 of file jsmin.py.

def jsmin.JavascriptMinify._next (   self) [private]
get the next character, excluding comments. peek() is used to see
   if a '/' is followed by a '/' or '*'.

Definition at line 88 of file jsmin.py.

def jsmin.JavascriptMinify._outA (   self) [private]

Definition at line 62 of file jsmin.py.

def jsmin.JavascriptMinify._outB (   self) [private]

Definition at line 64 of file jsmin.py.

def jsmin.JavascriptMinify._peek (   self) [private]

Definition at line 84 of file jsmin.py.

def jsmin.JavascriptMinify.minify (   self,
  instream,
  outstream 
)

Definition at line 203 of file jsmin.py.


Member Data Documentation

Definition at line 203 of file jsmin.py.

Definition at line 203 of file jsmin.py.

Definition at line 203 of file jsmin.py.

Definition at line 119 of file jsmin.py.

Definition at line 119 of file jsmin.py.

Definition at line 70 of file jsmin.py.


The documentation for this class was generated from the following file:


websocket_gui
Author(s): Benoit Lescot and Stéphane Magnenat
autogenerated on Sat Dec 28 2013 17:46:48