CodeNamespace class

A namespace that can have multiple loaded CodeUnit instances.

Available Extensions

Constructors

CodeNamespace(String language, String name)

Properties

classesNames List<String>
Returns a list of classes names.
no setter
functions List<String>
Returns a list of functions names.
no setter
hashCode int
The hash code for this object.
no setteroverride
language String
The language of the stored CodeUnit.
final
name String
Name of the namespace.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCodeUnit(CodeUnit codeUnit) → void
Adds a loaded codeUnit.
containsClass(String className, {bool caseInsensitive = false}) bool
Returns true if contains class with className.
generateAll<O extends Object, S extends ApolloCodeUnitStorage<D>, D extends Object>(ApolloGenerator<O, S, D> generator) → void
Generates all the code of this namespace using codeGenerator.
generateAllCode(ApolloCodeGenerator codeGenerator) → void
Generates all the code of this namespace using codeGenerator.
getClass(String className, {bool caseInsensitive = false}) ASTClassNormal?
Returns an ASTClassNormal for className.
getCodeUnitWithClass(String className, {bool caseInsensitive = false}) CodeUnit?
Returns the 1st CodeUnit with a class with className.
getCodeUnitWithClassMethod(String fName, {bool caseInsensitive = false}) CodeUnit?
Returns the 1st CodeUnit with a class method of name fName.
getCodeUnitWithFunction(String fName, {bool caseInsensitive = false}) CodeUnit?
Returns the 1st CodeUnit with a function of name fName.
getFunction(String fName, ASTFunctionSignature parametersSignature, VMContext context, {bool caseInsensitive = false}) ASTFunctionDeclaration?
Returns a function with fName and parametersSignature (using context if needed).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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