net.jangaroo.jooc.ast
Class QualifiedIde

java.lang.Object
  extended by net.jangaroo.jooc.ast.NodeImplBase
      extended by net.jangaroo.jooc.ast.Ide
          extended by net.jangaroo.jooc.ast.QualifiedIde
All Implemented Interfaces:
AstNode, CodeGenerator

public class QualifiedIde
extends Ide

Author:
Andreas Gawecki

Nested Class Summary
 
Nested classes/interfaces inherited from class net.jangaroo.jooc.ast.NodeImplBase
NodeImplBase.Scoped
 
Constructor Summary
QualifiedIde(Ide qualifier, JooSymbol symDot, JooSymbol symIde)
           
 
Method Summary
 boolean addExternalUsage()
           
 void analyze(AstNode parentNode)
           
 void analyzeAsExpr(AstNode exprParent, Expr parentExpr)
           
static String constructQualifiedNameStr(String[] qualifiedName, String separator)
           
 boolean equals(Object o)
           
 void generateCodeAsExpr(JsWriter out)
           
 IdeDeclaration getMemberDeclaration()
           
 String[] getQualifiedName()
           
 String getQualifiedNameStr()
           
 Ide getQualifier()
           
 JooSymbol getSymbol()
           
 JooSymbol getSymDot()
           
 int hashCode()
           
 Ide qualify(JooSymbol symQualifier, JooSymbol symDot)
           
 IdeDeclaration resolveDeclaration()
          Resolve the declaration of this ide to the underlying declaration.
 void scope(Scope scope)
           
 void visit(AstVisitor visitor)
           
 
Methods inherited from class net.jangaroo.jooc.ast.Ide
getDeclaration, getDeclaration, getIde, getName, getQualified, getScope, isBound, isQualified, isQualifiedBySuper, isQualifiedByThis, isQualifier, isRewriteThis, resolveMember, setBound, setIde, setQualified, setRewriteThis, toString, usageInExpr, writeBoundMethodAccess, writeIde, writeMemberAccess
 
Methods inherited from class net.jangaroo.jooc.ast.NodeImplBase
analyze, generate, scope, withNewDeclarationScope, withNewLabelScope
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QualifiedIde

public QualifiedIde(Ide qualifier,
                    JooSymbol symDot,
                    JooSymbol symIde)
Method Detail

visit

public void visit(AstVisitor visitor)
           throws IOException
Specified by:
visit in interface AstNode
Overrides:
visit in class Ide
Throws:
IOException

getQualifier

public Ide getQualifier()
Overrides:
getQualifier in class Ide

getSymDot

public JooSymbol getSymDot()

getQualifiedName

public String[] getQualifiedName()
Overrides:
getQualifiedName in class Ide

getQualifiedNameStr

public String getQualifiedNameStr()
Overrides:
getQualifiedNameStr in class Ide

getSymbol

public JooSymbol getSymbol()
Specified by:
getSymbol in interface AstNode
Overrides:
getSymbol in class Ide

constructQualifiedNameStr

public static String constructQualifiedNameStr(String[] qualifiedName,
                                               String separator)

qualify

public Ide qualify(JooSymbol symQualifier,
                   JooSymbol symDot)
Overrides:
qualify in class Ide

addExternalUsage

public boolean addExternalUsage()
Overrides:
addExternalUsage in class Ide

scope

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

analyze

public void analyze(AstNode parentNode)
Specified by:
analyze in interface AstNode
Overrides:
analyze in class NodeImplBase

analyzeAsExpr

public void analyzeAsExpr(AstNode exprParent,
                          Expr parentExpr)
Overrides:
analyzeAsExpr in class Ide

resolveDeclaration

public IdeDeclaration resolveDeclaration()
Description copied from class: Ide
Resolve the declaration of this ide to the underlying declaration. callable after scoping phase

Overrides:
resolveDeclaration in class Ide
Returns:
null if the declaration cannot be resolved

getMemberDeclaration

public IdeDeclaration getMemberDeclaration()
Overrides:
getMemberDeclaration in class Ide

generateCodeAsExpr

public void generateCodeAsExpr(JsWriter out)
                        throws IOException
Overrides:
generateCodeAsExpr in class Ide
Throws:
IOException

equals

public boolean equals(Object o)
Overrides:
equals in class Ide

hashCode

public int hashCode()
Overrides:
hashCode in class Ide


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