Package net.jangaroo.jooc.ast
Class IdeDeclaration
- 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
-
- All Implemented Interfaces:
AstNode
- Direct Known Subclasses:
NamespaceDeclaration,PackageDeclaration,Parameter,TypeDeclaration,TypedIdeDeclaration
public abstract class IdeDeclaration extends Declaration
- Author:
- Andreas Gawecki
-
-
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 Modifier Constructor Description protectedIdeDeclaration(AnnotationsAndModifiers am, Ide ide)protectedIdeDeclaration(Ide ide)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidanalyze(AstNode parentNode)List<? extends AstNode>getChildren()JooSymbolgetDeclarationSymbol()StringgetExtNamespaceRelativeTargetQualifiedNameStr()IdegetIde()StringgetName()PackageDeclarationgetPackageDeclaration()String[]getQualifiedName()StringgetQualifiedNameStr()IdeDeclarationgetSuperDeclaration()JooSymbolgetSymbol()StringgetTargetQualifiedNameStr()StringgetTargetQualifiedNameStrWithoutRename()ExpressionTypegetType()Set<IdeExpr>getUsages()voidhandleDuplicateDeclaration(Scope scope, AstNode oldNode)booleanisConstructor()booleanisDeclaringCompileTimeConstant()booleanisMethod()booleanisPrimaryDeclaration()IdeDeclarationresolveDeclaration()Resolve this declaration to the underlying Class or PredefinedType declarationvoidscope(Scope scope)voidsetIde(Ide ide)StringtoString()protected static JooSymbol[]toSymbolArray(List symbols)-
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
-
-
-
-
Constructor Detail
-
IdeDeclaration
protected IdeDeclaration(AnnotationsAndModifiers am, Ide ide)
-
IdeDeclaration
protected IdeDeclaration(Ide ide)
-
-
Method Detail
-
getChildren
public List<? extends AstNode> getChildren()
- Specified by:
getChildrenin interfaceAstNode- Overrides:
getChildrenin classDeclaration
-
getIde
public Ide getIde()
-
getSymbol
public JooSymbol getSymbol()
- Specified by:
getSymbolin interfaceAstNode- Overrides:
getSymbolin classDeclaration
-
getDeclarationSymbol
public JooSymbol getDeclarationSymbol()
-
getName
public String getName()
-
getQualifiedName
public String[] getQualifiedName()
-
getTargetQualifiedNameStr
public String getTargetQualifiedNameStr()
-
getTargetQualifiedNameStrWithoutRename
public String getTargetQualifiedNameStrWithoutRename()
-
getExtNamespaceRelativeTargetQualifiedNameStr
public String getExtNamespaceRelativeTargetQualifiedNameStr()
-
getQualifiedNameStr
public String getQualifiedNameStr()
-
getType
public ExpressionType getType()
-
scope
public void scope(Scope scope)
- Specified by:
scopein interfaceAstNode- Overrides:
scopein classDeclaration
-
analyze
public void analyze(AstNode parentNode)
- Specified by:
analyzein interfaceAstNode- Overrides:
analyzein classDeclaration
-
isMethod
public boolean isMethod()
-
isConstructor
public boolean isConstructor()
-
resolveDeclaration
public IdeDeclaration resolveDeclaration()
Resolve this declaration to the underlying Class or PredefinedType declaration- Returns:
- the declaration
-
isPrimaryDeclaration
public boolean isPrimaryDeclaration()
-
isDeclaringCompileTimeConstant
public boolean isDeclaringCompileTimeConstant()
-
setIde
public void setIde(Ide ide)
-
getPackageDeclaration
public PackageDeclaration getPackageDeclaration()
-
getSuperDeclaration
public IdeDeclaration getSuperDeclaration()
-
-