ElegantJ Data Tables Java API Specification v1.1

com.elegantj.data.parser.postfixmathcommand
Class RightTrim

java.lang.Object
  extended bycom.elegantj.data.parser.postfixmathcommand.PostfixMathCommand
      extended bycom.elegantj.data.parser.postfixmathcommand.RightTrim
All Implemented Interfaces:
PostfixMathCommandI

public class RightTrim
extends PostfixMathCommand

Trims the string right hand side
Command Method -> rightTrim


Constructor Summary
RightTrim()
           
 
Method Summary
static java.lang.String rightTrim(java.lang.String str, int n)
          Trims the string right hand side, it removes the white spaces
 void run(java.util.Stack inStack)
          Determines the node execution with the stack of arguments and store the result back to the stack.
 
Methods inherited from class com.elegantj.data.parser.postfixmathcommand.PostfixMathCommand
checkStack, getNumberOfParameters, getParameterTypes, getReturnType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RightTrim

public RightTrim()
Method Detail

rightTrim

public static java.lang.String rightTrim(java.lang.String str,
                                         int n)
Trims the string right hand side, it removes the white spaces

Parameters:
str - the string to be trimmed
n - the length

run

public void run(java.util.Stack inStack)
         throws CommandFailedException,
                ArgumentRequiredException,
                InvalidArgumentException
Description copied from interface: PostfixMathCommandI
Determines the node execution with the stack of arguments and store the result back to the stack.

Parameters:
inStack - the stack of the arguments
Throws:
CommandFailedException
ArgumentRequiredException
InvalidArgumentException

ElegantJ Data Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.