hsh :: command :: HashDirective :: Class HashDirective
[hide private]
[frames] | no frames]

Class HashDirective

object --+        
         |        
     Token --+    
             |    
     LeafToken --+
                 |
                HashDirective

A directive to the shell about how to launch the job, identified by a leading # character.

Instance Methods [hide private]
 
expand(self)
Hash directives are not included in the final command line.
 
expand_directives(self)
Return the list of directives which are expanded from this token.
 
completions(self, cloc)
Return a list of completions for this token from the specified cursor location.

Inherited from LeafToken: __init__, __len__, __str__, dump, modify

Inherited from Token: commences, terminated, terminates

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  commencer_ch = '#'

Inherited from Token: dquotable

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

expand(self)

 

Hash directives are not included in the final command line.

Overrides: Token.expand

expand_directives(self)

 

Return the list of directives which are expanded from this token. The HashDirective token will return something here, but most other tokens use the default implementation which returns an empty list.

Overrides: Token.expand_directives
(inherited documentation)

completions(self, cloc)

 

Return a list of completions for this token from the specified cursor location. If no possible completions exist, [] is returned. If possible completions exist, a list of strings is returned. The first item is the root of the completions, the rest are possible extensions of the root. Most tokens will return None if the cursor is not at the end. The default implementation returns nothing.

Overrides: Token.completions
(inherited documentation)