Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.deft.extension.tools.tokentrimmer
Class TokenAutoTrimmer

    java.lang.Object
      org.deft.extension.tools.tokentrimmer.TokenAutoTrimmer

    public class TokenAutoTrimmer

extends java.lang.Object

Remove leading and trailing whitespace defined by a language dependent specification.

Author:
  Martin Heinzerling

Constructor Summary
`TokenAutoTrimmer(org.deft.repository.ast.TreeNode root)`

Method Summary
`static void` | `create(java.lang.String id, java.lang.String trimerDescriptionFile)` Creates a specific autotrimmer and connect it with an id.
`static void` | `set(java.lang.String id)` Sets a previously create autotrimmer to the new standard one.
`void` | `trim(org.deft.repository.ast.TreeNode tn)` Trims a treenode by the current active autotrim definition.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TokenAutoTrimmer

    public TokenAutoTrimmer(org.deft.repository.ast.TreeNode root)

Method Detail

### create

    public static void create(java.lang.String id,
                              java.lang.String trimerDescriptionFile)

  Creates a specific autotrimmer and connect it with an id.

### set

    public static void set(java.lang.String id)

  Sets a previously create autotrimmer to the new standard one.

  Parameters:
    `id` -

### trim

    public void trim(org.deft.repository.ast.TreeNode tn)

  Trims a treenode by the current active autotrim definition.

  Parameters:
    `tn` -

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD