# Class CodePureEditor

java.lang.Object
com.codename1.ui.editor.PureEditor
com.codename1.ui.editor.CodePureEditor

public class CodePureEditor extends PureEditor
The pure code editor backend. It maps the code editor command / query vocabulary onto a `CodeView`, parsing the diagnostics and completion payloads that arrive over the string command channel back into `CodeDiagnostic` / `CodeCompletion` objects.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CodePureEditor(EditorHost host, String editorType)`
  Creates a code editor backend.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `cmd(String name, String arg)`
  Executes a one way command.
  `protected EditorView`
  `createView(EditorHost host, boolean codeMode)`
  Creates the editor view.

  ### Methods inherited from class PureEditor

  `getView, isCodeMode, query, view`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### CodePureEditor

    public CodePureEditor(EditorHost host, String editorType)
    Creates a code editor backend.

- ## Method Details

  - ### createView

    protected EditorView createView(EditorHost host, boolean codeMode)
    Description copied from class: `PureEditor`
    Creates the editor view. Subclasses override to supply a code or rich text view.
    Overrides:
      `createView` in class `PureEditor`

  - ### cmd

    public void cmd(String name, String arg)
    Description copied from class: `PureEditor`

    Executes a one way command. Unknown commands are ignored so subclasses can add vocabulary without breaking the base.

    ###### Parameters

    - `name`: the command name

    - `arg`: the optional argument, may be null

    Overrides:
      `cmd` in class `PureEditor`