net.jangaroo.jooc.ast
Class IdeDeclaration

java.lang.Object
  extended by net.jangaroo.jooc.ast.NodeImplBase
      extended by net.jangaroo.jooc.ast.Directive
          extended by net.jangaroo.jooc.ast.Statement
              extended by net.jangaroo.jooc.ast.Declaration
                  extended by net.jangaroo.jooc.ast.IdeDeclaration
All Implemented Interfaces:
AstNode, CodeGenerator
Direct Known Subclasses:
ClassDeclaration, NamespacedDeclaration, PackageDeclaration, Parameter, PredefinedTypeDeclaration, 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
 
Constructor Summary
protected IdeDeclaration(Ide ide)
           
protected IdeDeclaration(JooSymbol[] modifiers, Ide ide)
           
 
Method Summary
 Ide getIde()
           
 String getName()
           
 String[] getQualifiedName()
           
 String getQualifiedNameStr()
           
 JooSymbol getSymbol()
           
 void handleDuplicateDeclaration(Scope scope, AstNode oldNode)
           
 boolean isConstructor()
           
 boolean isMethod()
           
 boolean isPrimaryDeclaration()
           
 IdeDeclaration resolveDeclaration()
          Resolve this declaration to the underlying Class or PredefinedType declaration
 IdeDeclaration resolvePropertyDeclaration(String ide)
           
 void scope(Scope scope)
           
 void setIde(Ide ide)
           
 String toString()
           
 
Methods inherited from class net.jangaroo.jooc.ast.Declaration
analyze, computeModifiers, getAllowedModifiers, getClassDeclaration, getModifierFlag, getModifiers, getParentDeclaration, getSymInheritedModifiers, getSymModifiers, isAbstract, isFinal, isNative, isOverride, isPrivate, isPrivateStatic, isProtected, isPublic, isStatic, 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, generate, scope, withNewDeclarationScope, withNewLabelScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.jangaroo.jooc.ast.AstNode
visit
 

Constructor Detail

IdeDeclaration

protected IdeDeclaration(JooSymbol[] modifiers,
                         Ide ide)

IdeDeclaration

protected IdeDeclaration(Ide ide)
Method Detail

getIde

public Ide getIde()

getSymbol

public JooSymbol getSymbol()

getName

public String getName()

getQualifiedName

public String[] getQualifiedName()

getQualifiedNameStr

public String getQualifiedNameStr()

scope

public void scope(Scope scope)
Specified by:
scope in interface AstNode
Overrides:
scope in class Declaration

handleDuplicateDeclaration

public void handleDuplicateDeclaration(Scope scope,
                                       AstNode oldNode)

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

resolvePropertyDeclaration

public IdeDeclaration resolvePropertyDeclaration(String ide)

toString

public String toString()
Overrides:
toString in class Object

isPrimaryDeclaration

public boolean isPrimaryDeclaration()

setIde

public void setIde(Ide ide)


Copyright © 2002-2011 CoreMedia AG. All Rights Reserved.