PageObject
/**
* A page object, which is the first argument of a PageRegistrationExpression.
*/
Inherit from ObjectLiteralExpression
Primary key: id: int
schema PageObject extends ObjectLiteralExpression {
@primary id: int
}
PageObject::getRelativePath
/**
* Gets the relative path of this node.
*/
- Parameter
self
:PageObject
- Return
string
pub fn getRelativePath(self: PageObject) -> string;
PageObject::getExpression
- Parameter
self
:PageObject
- Return
Expression
pub fn getExpression(self: PageObject) -> Expression;
PageObject::getParent
/**
* Gets the parent node of this node.
*/
- Parameter
self
:PageObject
- Return
Node
pub fn getParent(self: PageObject) -> Node;
PageObject::getEndColumnNumber
- Parameter
self
:PageObject
- Return
int
pub fn getEndColumnNumber(self: PageObject) -> int;
PageObject::getLastChild
/**
* Gets the last child of this node parent.
*/
- Parameter
self
:PageObject
- Return
Node
pub fn getLastChild(self: PageObject) -> Node;
PageObject::getStartColumnNumber
- Parameter
self
:PageObject
- Return
int
pub fn getStartColumnNumber(self: PageObject) -> int;
PageObject::getAChild
/**
* Gets a child node of this node.
*/
- Parameter
self
:PageObject
- Return
*Node
pub fn getAChild(self: PageObject) -> *Node;
PageObject::getChildCount
/**
* Gets the number of child nodes.
*/
- Parameter
self
:PageObject
- Return
int
pub fn getChildCount(self: PageObject) -> int;
PageObject::getDecorator
/**
* Gets the `i`th decorator.
*/
- Parameter
self
:PageObject
- Parameter
i
:int
- Return
Decorator
pub fn getDecorator(self: PageObject, i: int) -> Decorator;
PageObject::getALeadingComment
/**
* Gets the leading comments of it
*/
- Parameter
self
:PageObject
- Return
*Comment
pub fn getALeadingComment(self: PageObject) -> *Comment;
PageObject::getPropertyByName
/**
* Get the property of this ObjectLiteralExpression by name.
*/
- Parameter
self
:PageObject
- Parameter
name
:string
- Return
ObjectLiteralElement
pub fn getPropertyByName(self: PageObject, name: string) -> ObjectLiteralElement;
PageObject::getFile
/**
* Gets the file of this node.
*/
- Parameter
self
:PageObject
- Return
File
pub fn getFile(self: PageObject) -> File;
PageObject::getAComment
/**
* Gets the comments related to it
*/
- Parameter
self
:PageObject
- Return
*Comment
pub fn getAComment(self: PageObject) -> *Comment;
PageObject::getADecorator
/**
* Gets a decorator.
*/
- Parameter
self
:PageObject
- Return
*Decorator
pub fn getADecorator(self: PageObject) -> *Decorator;
PageObject::hasProperty
/**
* Determine whether this ObjectLiteralExpression has a property with the specified name.
*/
- Parameter
self
:PageObject
- Parameter
name
:string
- Return
bool
pub fn hasProperty(self: PageObject, name: string) -> bool;
PageObject::getParentOid
/**
* Gets the parent oid of this node.
*/
- Parameter
self
:PageObject
- Return
int
pub fn getParentOid(self: PageObject) -> int;
PageObject::getADescendant
/**
* Gets a descendant of this node.
*/
- Parameter
self
:PageObject
- Return
*Node
pub fn getADescendant(self: PageObject) -> *Node;
PageObject::getEnclosingFunction
/**
* Gets the enclosing function of it
*/
- Parameter
self
:PageObject
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: PageObject) -> FunctionLikeDeclaration;
PageObject::getRoot
/**
* Gets the root top-level of this node.
*/
- Parameter
self
:PageObject
- Return
TopLevelDO
pub fn getRoot(self: PageObject) -> TopLevelDO;
PageObject::getAnAncestor
/**
* Gets an ancestor of this node.
*/
- Parameter
self
:PageObject
- Return
*Node
pub fn getAnAncestor(self: PageObject) -> *Node;
PageObject::getAnAncestorByLevel
/**
* Gets an ancestor of this node by the level of the hierarchy.
*
* @param level: the number of levels to go up in the hierarchy.
*/
- Parameter
self
:PageObject
- Parameter
level
:int
- Return
Node
pub fn getAnAncestorByLevel(self: PageObject, level: int) -> Node;
PageObject::getEndLineNumber
- Parameter
self
:PageObject
- Return
int
pub fn getEndLineNumber(self: PageObject) -> int;
PageObject::getATrailingComment
/**
* Gets the trailing comments of it
*/
- Parameter
self
:PageObject
- Return
*Comment
pub fn getATrailingComment(self: PageObject) -> *Comment;
PageObject::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*PageObject
pub fn __all__(db: JavascriptDB) -> *PageObject;
PageObject::getADescendantByLevel
/**
* Gets a descendant of this node by the level of the hierarchy.
*
* @param level: the number of levels to go up in the hierarchy.
*/
- Parameter
self
:PageObject
- Parameter
level
:int
- Return
*Node
pub fn getADescendantByLevel(self: PageObject, level: int) -> *Node;
PageObject::getLocation
/**
* Gets the location of this node.
*/
- Parameter
self
:PageObject
- Return
Location
pub fn getLocation(self: PageObject) -> Location;
PageObject::getStartLineNumber
- Parameter
self
:PageObject
- Return
int
pub fn getStartLineNumber(self: PageObject) -> int;
PageObject::getChild
/**
* Gets the `i`th child of this node.
*/
- Parameter
self
:PageObject
- Parameter
i
:int
- Return
Node
pub fn getChild(self: PageObject, i: int) -> Node;
PageObject::getSymbol
/**
* Gets the symbol associated with this node.
*/
- Parameter
self
:PageObject
- Return
Symbol
pub fn getSymbol(self: PageObject) -> Symbol;
PageObject::getAnAncestorEnclosingFunction
/**
* Gets an ancestor enclosing function of it
*/
- Parameter
self
:PageObject
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: PageObject) -> *FunctionLikeDeclaration;
PageObject::getPropertyAssignmentByName
/**
* Get the PropertyAssignment of this ObjectLiteralExpression by name.
*/
- Parameter
self
:PageObject
- Parameter
name
:string
- Return
PropertyAssignment
pub fn getPropertyAssignmentByName(self: PageObject, name: string) -> PropertyAssignment;
PageObject::getIndex
- Parameter
self
:PageObject
- Return
int
pub fn getIndex(self: PageObject) -> int;
PageObject::getAProperty
/**
* Get a property, which is an ObjectLiteralElement.
*/
- Parameter
self
:PageObject
- Return
*ObjectLiteralElement
pub fn getAProperty(self: PageObject) -> *ObjectLiteralElement;
PageObject::getAModifier
/**
* Gets a modifier.
*/
- Parameter
self
:PageObject
- Return
*Modifier
pub fn getAModifier(self: PageObject) -> *Modifier;
PageObject::getKind
/**
* Get the syntax kind of this node
*/
- Parameter
self
:PageObject
- Return
int
pub fn getKind(self: PageObject) -> int;
PageObject::getText
/**
* Gets the text of this node.
*/
- Parameter
self
:PageObject
- Return
string
pub fn getText(self: PageObject) -> string;
PageObject::getModifier
/**
* Gets the `i`th modifier.
*/
- Parameter
self
:PageObject
- Parameter
i
:int
- Return
Modifier
pub fn getModifier(self: PageObject, i: int) -> Modifier;
PageObject::getProperty
/**
* Get the `i`th property.
*/
- Parameter
self
:PageObject
- Parameter
i
:int
- Return
ObjectLiteralElement
pub fn getProperty(self: PageObject, i: int) -> ObjectLiteralElement;