Type is a generic representation of all the entities declared
with anvil.
Constants
Methods
Returns the base class of this class.
Returns the class where this type is declared.
Returns the constructor of class.
Returns array of declarations contained in this type.
Declarations are mapped to array their names.
| Parameters |
type -
Optional parameter restricting returned
declarations to be of given type.
|
Returns a document for this type.
Returns this function as anvil.runtime.Function.
Returns the tuple of interfaces of this class or interfaces.
Returns the script where this type is declared.
Returns the name of type.
Returns array containing a function's parameters list.
For each parameter there exists an tuple
(required, defaultValue, docText, docTypeText).
These tuples are mapped to array with parameters names.
If parameter name is .. it indicates that
this function accepts variable length arguments and mapped tuple
contains (restName, docText, docTypeText).
Returns the parent type for this type.
Returns the pathinfo where this type is declared.
If it is located on a library, returns the name of library.
Returns the qualified name (dotted name starting from module) of type.
Returns the type as string.
Type is one of:
- module
- namespace
- class
- interface
- namespace
- namespace
- library
- function
- method
- prototype
- constructor
- constant
- variable
- member
- variable
- variable
- import
Returns type as int.
Returns the url where this type is declared.
If it is located on a library, undefined.
Returns the value contained in variable.
| Parameters |
instance -
Instance of class, required if the type is a member variable
|
Returns the Zone where this type is declared.
| Throws |
AccessDenied -
If security policy denies this operation.
|
Checks if this type has a document.
Checks if this type a super class or same as the given type.
Checks if this type is private.
Looks up declaration with given name.
| Returns |
Type or undefined, if there was not a declaration with that name |
Looks up inherited declaration with given name from class or interface.
| Returns |
Type or undefined, if there was not a declaration with that name |
Creates and returns a new instance from class with given parameters.
Sets the value contained in variable.
| Parameters |
instance -
Instance of class, required if the type is a member variable
|