ASTClassNormal class

AST of a normal VM Class.

Inheritance
Implementers

Constructors

ASTClassNormal(String name, ASTType<VMObject> type, ASTBlock? parentBlock, {ASTClassKind kind = ASTClassKind.normalClass, String? superClassName, List<String>? implementsTypes})

Properties

children Iterable<ASTNode>
The children nodes of this node.
no setterinherited
constructors List<ASTConstructorSet>
no setteroverride
constructorsNames List<String>
no setteroverride
descendantChildren List<ASTNode>
Return the children and it's descendant children (unmodifiable).
no setterinherited
fields List<ASTClassField>
no setteroverride
fieldsNames List<String>
no setteroverride
functions List<ASTFunctionSet>
no setterinherited
functionsNames List<String>
no setterinherited
getter List<ASTGetterDeclaration>
no setterinherited
getterNames List<String>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
implementsTypes List<String>?
The names of the interfaces this class implements (if any).
final
isAbstract bool
Returns true if this class is abstract.
no setter
isInterface bool
Returns true if this class is an interface.
no setter
kind ASTClassKind
The kind of this class (normal / abstract / interface).
final
name String
finalinherited
parentBlock ASTBlock?
getter/setter pairinherited
parentNode ASTNode?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statements List<ASTStatement>
no setterinherited
staticAccessor ASTClassStaticAccessor<ASTClass<VMObject>, VMObject>
latefinalinherited
superClassName String?
The name of the super class this class extends (if any).
final
type ASTType<VMObject>
finalinherited

Methods

addAllConstructors(Iterable<ASTClassConstructorDeclaration> constructors) → void
addAllFields(Iterable<ASTClassField> fields) → void
addAllFunctions(Iterable<ASTFunctionDeclaration> fs) → void
inherited
addAllGetters(Iterable<ASTGetterDeclaration> gs) → void
inherited
addAllStatements(Iterable<ASTStatement> statements) → void
inherited
addConstructor(ASTClassConstructorDeclaration constructor) → void
addField(ASTClassField field) → void
addFunction(ASTFunctionDeclaration f) → void
override
addGetter(ASTGetterDeclaration g) → void
override
addStatement(ASTStatement statement) → void
inherited
associateToType(ASTTypedNode node) → void
inherited
cacheDescendantChildren() → void
Mark that this node can cache its descendantChildren.
inherited
containsConstructorWithName(String name, {bool caseInsensitive = false}) bool
containsFunctionWithName(String name, {bool caseInsensitive = false}) bool
inherited
createContext(VMTypeResolver? typeResolver, [VMContext? parentContext]) VMClassContext
inherited
createInstance(VMClassContext context, ASTRunStatus runStatus) FutureOr<ASTClassInstance<VMObject>?>
override
defineRunContext(VMContext parentContext) VMContext
inherited
execute(String entryFunctionName, List? positionalParameters, Map? namedParameters, {ApolloImportManager? importManager, ApolloExternalFunctionMapper? externalFunctionMapper, VMObject? classInstanceObject, Map<String, ASTValue>? classInstanceFields, VMTypeResolver? typeResolver}) FutureOr<ASTValue>
inherited
getConstructor(String fName, ASTFunctionSignature? parametersSignature, VMContext context, {bool caseInsensitive = false}) ASTClassConstructorDeclaration?
override
getConstructorWithName(String name, {bool caseInsensitive = false}) ASTConstructorSet?
getField(String name, {bool caseInsensitive = false}) ASTClassField?
override
getFieldsMap({VMContext? context, Map<String, ASTValue>? fieldOverwrite}) FutureOr<Map<String, Object>>
Returns a Map<String,Object> with the fields names and values.
override
getFunction(String fName, ASTFunctionSignature parametersSignature, VMContext context, {bool caseInsensitive = false}) ASTInvocableDeclaration<dynamic, ASTParameterDeclaration, ASTParametersDeclaration<ASTParameterDeclaration>>?
Resolves a function/constructor visible from inside this class. Falls back to the enclosing ASTRoot (reached via the parentNode chain set by ASTRoot.resolveNode) so a method can instantiate sibling classes (their constructors) and call top-level functions — the class-method execution context is rooted at the class, not the program root.
inherited
getFunctionReturnType<T>(String name, ASTFunctionSignature parametersTypes, VMContext context) ASTType<T>?
inherited
getFunctionWithName(String name, {bool caseInsensitive = false}) ASTFunctionSet?
inherited
getFunctionWithParameters(String entryFunctionName, List? positionalParameters, Map? namedParameters, {ApolloImportManager? importManager, ApolloExternalFunctionMapper? externalFunctionMapper, VMTypeResolver? typeResolver}) FutureOr<ASTInvocableDeclaration<dynamic, ASTParameterDeclaration, ASTParametersDeclaration<ASTParameterDeclaration>>?>
inherited
getGetter(String fName, VMContext context, {bool caseInsensitive = false}) ASTGetterDeclaration?
inherited
getGetterWithName(String name, {bool caseInsensitive = false}) ASTGetterDeclaration?
inherited
getInstanceFieldValue(VMContext context, ASTRunStatus runStatus, ASTValue<VMObject> instance, String fieldName, {bool caseInsensitive = false}) FutureOr<ASTValue?>
override
getNodeIdentifier(String name, {ASTNode? requester}) ASTNode?
override
initializeInstance(VMClassContext context, ASTRunStatus runStatus, ASTValue<VMObject> instance) FutureOr<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeInstanceFieldValue(VMContext context, ASTRunStatus runStatus, ASTValue<VMObject> instance, String fieldName, {bool caseInsensitive = false}) FutureOr<ASTValue?>
override
resolveNode(ASTNode? parentNode) → void
inherited
resolveNodeConstructors(ASTNode? parentNode) → void
override
resolveNodeFields(ASTNode? parentNode) → void
override
resolveRuntimeType(VMContext context, ASTNode? node) FutureOr<ASTType>
inherited
resolveType(VMContext? context) ASTType
inherited
run(VMContext parentContext, ASTRunStatus runStatus) FutureOr<ASTValue>
inherited
set(ASTBlock? other) → void
override
setInstanceByMap(VMClassContext context, ASTRunStatus runStatus, ASTValue<VMObject> instance, Map<String, ASTValue> value, {bool caseInsensitive = false}) FutureOr<void>
override
setInstanceByValue(VMClassContext context, ASTRunStatus runStatus, ASTValue<VMObject> instance, ASTValue<VMObject> value) FutureOr<void>
override
setInstanceByVMObject(VMClassContext context, ASTRunStatus runStatus, ASTValue<VMObject> instance, VMObject value) FutureOr<void>
override
setInstanceFieldValue(VMContext context, ASTRunStatus runStatus, ASTValue<VMObject> instance, String fieldName, ASTValue value, {bool caseInsensitive = false}) FutureOr<ASTValue?>
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited