# Class BrowserComponent.JSExpression

java.lang.Object
com.codename1.ui.BrowserComponent.JSExpression

Enclosing class:
  `BrowserComponent`

public static class BrowserComponent.JSExpression extends java.lang.Object
A wrapper class for a literal javascript expression that can be passed as an arg in `java.lang.Object[])`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JSExpression(String expression)`
  Creates a literal javascript expression.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `toString()`
  Gets the javascript expression as a string.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### JSExpression

    public JSExpression(String expression)

    Creates a literal javascript expression.

    ###### Parameters

    - `expression`: The javascript expression.

- ## Method Details

  - ### toString

    public String toString()

    Gets the javascript expression as a string.

    ###### Returns

    The javascript literal expression.

    Overrides:
      `toString` in class `java.lang.Object`