commandbox.system.util.jline

Class REPLCompletor

lucee.Component
    extended by commandbox.system.util.jline.REPLCompletor

Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I handle tab completion in the shell

Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
  • author : Brad Wood, Luis Majano, Denny Valliant
  •  
    Property Summary
    type property default serializable required
    any shell


    • access = public
    • returntype = any
    • inject = Shell
    true false
    Constructor Summary
    init()
          Constructor.
    Method Summary
    numeric complete([any reader], [any parsedLine], [any candidates])
         populate completion candidates and return cursor position.
    private any createCandidates([any candidates], [any javaCandidates])
         JLine3 needs an array of Java objects, so convert our array of strings to that.
    any setCurrentExecutor(any executor)
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Property Detail

    shell

    property any shell

    Attributes:
    access - public
    required - false
    returntype - any
    inject - Shell
    serializable - true

    Method Detail

    complete

    public numeric complete([any reader], [any parsedLine], [any candidates])

    populate completion candidates and return cursor position

    Parameters:
    reader
    parsedLine
    candidates - tree to populate with completion candidates

    createCandidates

    private any createCandidates([any candidates], [any javaCandidates])

    JLine3 needs an array of Java objects, so convert our array of strings to that

    Parameters:
    candidates
    javaCandidates

    setCurrentExecutor

    public any setCurrentExecutor(any executor)

    Parameters:
    executor