websIDE
  • webside
    • Overview
  • API
    • General
      • Dialect
      • Version
      • Colors
      • Logo
      • Stats
      • Themes
      • Icons
      • Save Image
    • Changes
      • Retrieve changes
      • Apply a change
    • Changesets
      • Convert chunks to JSON changes
      • Convert JSON changes to chunks
    • Code
      • Autocompletions
        • Retrieve autocompletions
      • Categories
        • Retrieve categories
        • Retrieve usual categories
      • Classes
        • Retrieve classes
        • Retrieve a class
        • Retrieve categories
        • Retrieve variables
        • Retrieve class variables
        • Retrieve instance variables
        • Retrieve selectors
        • Retrieve methods
        • Retrieve method
        • Retrieve method history
        • Retrieve subclasses
        • Retrieve superclasses
        • Retrieve used categories
      • Methods
        • Retrieve methods
      • Packages
        • Retrieve packages
        • Retrieve a package
        • Retrieve package classes
        • Retrieve package methods
      • Search
      • Selectors
        • Find selector in source code
      • Templates
        • Retrieve class template
        • Retrieve method template
    • Debuggers
      • Retrieve active debuggers
      • Create a debugger
      • Delete debugger
      • Retrieve debugger frames
      • Retrieve debugger frame
      • Retrieve frame bindings
      • Restart debugger
      • Resume debugger
      • Step into debugger
      • Step over debugger
      • Step through debugger
      • Terminate debugger
    • Evaluations
      • Retrieve evaluations
      • Evaluate an expression
      • Cancel evaluation
      • Retrieve evaluation
      • Pause evaluation
      • Resume evaluation
    • Extensions
      • Retrieve extensions
      • Changes extensions
      • Export extensions
      • Search extensions
    • Commands
      • Retrieve command definitions
      • Invoke commands
    • Objects
      • Retrieve pinned objects
      • Pin object
      • Retrieve pinned object
      • Retrieve pinned object slots
        • Custom views
      • Unpin an object
      • Unpin all objects
    • Processes
      • Retrieve active processes
    • Profilers
      • Retrieve active profilers
      • Create a new profiler
      • Delete a profiler
      • Retrieve a profiler
      • Retrieve profiler ranking results
      • Retrieve profiler tree results
    • Testing
      • Run tests
      • Retrieve test run status
      • Retrieve test run results
    • Workspaces
      • Retrieve active workspaces
      • Create a new workspace
      • Delete a workspace
      • Retrieve a workspace
      • Update a workspace
      • Retrieve workspace bindings
Powered by GitBook
On this page
  1. API
  2. Code
  3. Packages

Retrieve package methods

Retrieve extended methods of a given package.

URL: /packages/{name}/methods

Method: GET

Success Responses

Code : 200 OK

Content: [method] as defined in (../../../methods/get.md):

Example:: Webside package GET /packages/AST-Core/methods.

[
    {
        "class": "CompiledMethod",
        "hasNamedSlots": true,
        "hasIndexedSlots": true,
        "size": 70,
        "printString": "CompiledMethod>>#firstComment",
        "selector": "firstComment",
        "methodClass": "CompiledMethod",
        "category": "*AST-Core",
        "package": "AST-Core",
        "source": "firstComment\r\t\"Answer a string representing the first comment in the method associated with selector. Return an empty string if the method's source code does not contain a comment.\"\r\r\t^ self comments ifEmpty: [ #() ] ifNotEmpty: [ :comments | comments first ]",
        "author": "",
        "timestamp": "",
        "overriding": false,
        "overriden": false
    },
    {
        "class": "CompiledMethod",
        "hasNamedSlots": true,
        "hasIndexedSlots": true,
        "size": 40,
        "printString": "CompiledMethod>>#ast",
        "selector": "ast",
        "methodClass": "CompiledMethod",
        "category": "*AST-Core",
        "package": "AST-Core",
        "source": "ast\r\t\"return an AST for this method. The AST is cached. see class comment of ASTCache\"\r\t^ ASTCache at: self",
        "author": "",
        "timestamp": "",
        "overriding": true,
        "overriden": false
    },
    {
        "class": "CompiledMethod",
        "hasNamedSlots": true,
        "hasIndexedSlots": true,
        "size": 68,
        "printString": "CompiledMethod>>#comments",
        "selector": "comments",
        "methodClass": "CompiledMethod",
        "category": "*AST-Core",
        "package": "AST-Core",
        "source": "comments\r\t\"Answer a collection of strings representing the comments in the method. Return an empty collection if the method's source code does not contain a comment.\"\r\r\t^ self ast allComments collect: [:c| c contents]",
        "author": "",
        "timestamp": "",
        "overriding": false,
        "overriden": false
    },
    {
        "class": "CompiledMethod",
        "hasNamedSlots": true,
        "hasIndexedSlots": true,
        "size": 123,
        "printString": "CompiledMethod>>#parseTree",
        "selector": "parseTree",
        "methodClass": "CompiledMethod",
        "category": "*AST-Core",
        "package": "AST-Core",
        "source": "parseTree\r\t\"returns an AST for this method, do not cache it. (see #ast for the cached alternative)\"\r\t| ast |\r\tast := self methodClass compiler \r\t\tsource: self sourceCode;\r\t\tfailBlock: [^ self decompile ];\r\t\tparse.\r\tast compilationContext compiledMethod: self.\r\t^ast",
        "author": "",
        "timestamp": "",
        "overriding": false,
        "overriden": false
    },
    {
        "class": "CompiledMethod",
        "hasNamedSlots": true,
        "hasIndexedSlots": true,
        "size": 49,
        "printString": "Behavior>>#parseTreeFor:",
        "selector": "parseTreeFor:",
        "methodClass": "Behavior",
        "category": "*AST-Core",
        "package": "AST-Core",
        "source": "parseTreeFor: aSymbol\t\r\t^ (self compiledMethodAt: aSymbol) parseTree",
        "author": "",
        "timestamp": "",
        "overriding": false,
        "overriden": false
    },
    {
        "class": "CompiledMethod",
        "hasNamedSlots": true,
        "hasIndexedSlots": true,
        "size": 48,
        "printString": "String>>#isValidSelector",
        "selector": "isValidSelector",
        "methodClass": "String",
        "category": "*AST-Core",
        "package": "AST-Core",
        "source": "isValidSelector\r\t\"check I could be a valid selector (name of method). \r\t For checking if there is symbol like me used as a selector, see #isSelectorSymbol on Symbol\"\r\t^ RBScanner isSelector: self",
        "author": "",
        "timestamp": "",
        "overriding": false,
        "overriden": false
    },
    {
        "class": "CompiledMethod",
        "hasNamedSlots": true,
        "hasIndexedSlots": true,
        "size": 48,
        "printString": "String>>#asNumber",
        "selector": "asNumber",
        "methodClass": "String",
        "category": "*AST-Core-Parser",
        "package": "AST-Core",
        "source": "asNumber \r\t\"Answer the Number created by interpreting the receiver as the string \r\trepresentation of a number.\"\r\r\t^Number readFromString: self",
        "author": "",
        "timestamp": "",
        "overriding": false,
        "overriden": false
    },
    {
        "class": "CompiledMethod",
        "hasNamedSlots": true,
        "hasIndexedSlots": true,
        "size": 57,
        "printString": "ScaledDecimal class>>#readFrom:",
        "selector": "readFrom:",
        "methodClass": "ScaledDecimal class",
        "category": "*AST-Core-Parser",
        "package": "AST-Core",
        "source": "readFrom: stringOrStream \r\t\"Answer a decimal number as described on stringOrStream.\r\tThe number may not include a leading radix specification, as in 16rFADE,\r\tnor an exponent like 1.0e-3\r\tIt might have a scale specification at end or not like 10.3s2\r\tIf not, number of digits after decimal point will be used as scale\"\r\t\r\t^(NumberParser on: stringOrStream) nextScaledDecimal",
        "author": "",
        "timestamp": "",
        "overriding": true,
        "overriden": false
    }
]
PreviousRetrieve package classesNextSearch

Last updated 11 months ago