Package net.jangaroo.jooc.ast
Class NamespaceDeclaration
- java.lang.Object
-
- net.jangaroo.jooc.ast.NodeImplBase
-
- net.jangaroo.jooc.ast.Directive
-
- net.jangaroo.jooc.ast.Statement
-
- net.jangaroo.jooc.ast.Declaration
-
- net.jangaroo.jooc.ast.IdeDeclaration
-
- net.jangaroo.jooc.ast.NamespaceDeclaration
-
- All Implemented Interfaces:
AstNode
public class NamespaceDeclaration extends IdeDeclaration
- Author:
- Frank Wienberg
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.jangaroo.jooc.ast.NodeImplBase
NodeImplBase.Scoped
-
-
Field Summary
-
Fields inherited from class net.jangaroo.jooc.ast.Declaration
MODIFIER_ABSTRACT, MODIFIER_DYNAMIC, MODIFIER_FINAL, MODIFIER_INTERNAL, MODIFIER_NAMESPACE, MODIFIER_NATIVE, MODIFIER_OVERRIDE, MODIFIER_PRIVATE, MODIFIER_PROTECTED, MODIFIER_PUBLIC, MODIFIER_STATIC, MODIFIER_VIRTUAL, MODIFIERS_SCOPE
-
Fields inherited from class net.jangaroo.jooc.ast.NodeImplBase
usesInstanceThis
-
-
Constructor Summary
Constructors Constructor Description NamespaceDeclaration(AnnotationsAndModifiers am, Initializer optInitializer, JooSymbol optSymSemicolon)NamespaceDeclaration(AnnotationsAndModifiers am, JooSymbol symNamespace, Ide ide, Initializer optInitializer, JooSymbol optSymSemicolon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetAllowedModifiers()List<? extends AstNode>getChildren()JooSymbolgetDeclarationSymbol()InitializergetOptInitializer()JooSymbolgetOptSymSemicolon()JooSymbolgetSymNamespace()voidvisit(AstVisitor visitor)-
Methods inherited from class net.jangaroo.jooc.ast.IdeDeclaration
analyze, getExtNamespaceRelativeTargetQualifiedNameStr, getIde, getName, getPackageDeclaration, getQualifiedName, getQualifiedNameStr, getSuperDeclaration, getSymbol, getTargetQualifiedNameStr, getTargetQualifiedNameStrWithoutRename, getType, getUsages, handleDuplicateDeclaration, isConstructor, isDeclaringCompileTimeConstant, isMethod, isPrimaryDeclaration, resolveDeclaration, scope, setIde, toString, toSymbolArray
-
Methods inherited from class net.jangaroo.jooc.ast.Declaration
computeModifiers, getAnnotation, getAnnotations, getAnnotations, getClassDeclaration, getCompilationUnit, getModifierFlag, getModifiers, getParentDeclaration, getSymInheritedModifiers, getSymModifiers, isAbstract, isDynamic, isFinal, isNative, isOverride, isPrivate, isPrivateStatic, isProtected, isPublic, isPublicApi, isStatic, isWritable, setClassDeclaration, setInheritedModifiers, setParentDeclaration, setSymInheritedModifiers
-
Methods inherited from class net.jangaroo.jooc.ast.Directive
isClassMember, setClassMember
-
Methods inherited from class net.jangaroo.jooc.ast.NodeImplBase
analyze, getParentNode, isAssignmentLHS, makeChildren, notifyInstanceThisUsed, propagateInstanceThisUsed, scope, usesInstanceThis, withNewDeclarationScope, withNewLabelScope
-
-
-
-
Constructor Detail
-
NamespaceDeclaration
public NamespaceDeclaration(AnnotationsAndModifiers am, JooSymbol symNamespace, Ide ide, Initializer optInitializer, JooSymbol optSymSemicolon)
-
NamespaceDeclaration
public NamespaceDeclaration(AnnotationsAndModifiers am, Initializer optInitializer, JooSymbol optSymSemicolon)
-
-
Method Detail
-
getChildren
public List<? extends AstNode> getChildren()
- Specified by:
getChildrenin interfaceAstNode- Overrides:
getChildrenin classIdeDeclaration
-
getDeclarationSymbol
public JooSymbol getDeclarationSymbol()
- Overrides:
getDeclarationSymbolin classIdeDeclaration
-
visit
public void visit(AstVisitor visitor) throws IOException
- Throws:
IOException
-
getOptInitializer
public Initializer getOptInitializer()
-
getSymNamespace
public JooSymbol getSymNamespace()
-
getOptSymSemicolon
public JooSymbol getOptSymSemicolon()
-
getAllowedModifiers
protected int getAllowedModifiers()
- Overrides:
getAllowedModifiersin classDeclaration
-
-