Home Reference Source
public class | source

AllowedMethodsService

Definition of AllowedMethodsService class.

This service is used to determine which methods can be safely used to extend a given object. This is useful for e.g. for sandbox to make sure the name of the purpose of one of the perimeters does not break anything.

Constructor Summary

Public Constructor
public

constructor(dummyObj: {}, isStrict: boolean)

Member Summary

Public Members
public
public

Method Summary

Public Methods
public

isRestricted(methodName: *): *

Return true if method is not safe to use on the current object

Public Constructors

public constructor(dummyObj: {}, isStrict: boolean) source

Params:

NameTypeAttributeDescription
dummyObj {}
  • optional
  • default: {}
isStrict boolean
  • optional
  • default: true

Public Members

public dummyObj: * source

public isStrict: * source

Public Methods

public isRestricted(methodName: *): * source

Return true if method is not safe to use on the current object

Params:

NameTypeAttributeDescription
methodName *

Return:

*