Package net.jangaroo.jooc.ast
Class PackageDeclaration
- 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.PackageDeclaration
-
- All Implemented Interfaces:
AstNode
public class PackageDeclaration extends IdeDeclaration
- Author:
- Andreas Gawecki, 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 PackageDeclaration(JooSymbol symPackage, Ide ide)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JooSymbolgetDeclarationSymbol()PackageDeclarationgetPackageDeclaration()JooSymbolgetSymPackage()booleanisTopLevel()voidscope(Scope scope)voidvisit(AstVisitor visitor)-
Methods inherited from class net.jangaroo.jooc.ast.IdeDeclaration
analyze, getChildren, getExtNamespaceRelativeTargetQualifiedNameStr, getIde, getName, getQualifiedName, getQualifiedNameStr, getSuperDeclaration, getSymbol, getTargetQualifiedNameStr, getTargetQualifiedNameStrWithoutRename, getType, getUsages, handleDuplicateDeclaration, isConstructor, isDeclaringCompileTimeConstant, isMethod, isPrimaryDeclaration, resolveDeclaration, setIde, toString, toSymbolArray
-
Methods inherited from class net.jangaroo.jooc.ast.Declaration
computeModifiers, getAllowedModifiers, 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
-
-
-
-
Method Detail
-
getPackageDeclaration
public PackageDeclaration getPackageDeclaration()
- Overrides:
getPackageDeclarationin classIdeDeclaration
-
visit
public void visit(AstVisitor visitor) throws IOException
- Throws:
IOException
-
scope
public void scope(Scope scope)
- Specified by:
scopein interfaceAstNode- Overrides:
scopein classIdeDeclaration
-
getDeclarationSymbol
public JooSymbol getDeclarationSymbol()
- Overrides:
getDeclarationSymbolin classIdeDeclaration
-
isTopLevel
public boolean isTopLevel()
-
getSymPackage
public JooSymbol getSymPackage()
-
-