net.jangaroo.jooc
Class Ide
java.lang.Object
net.jangaroo.jooc.NodeImplBase
net.jangaroo.jooc.Ide
- Direct Known Subclasses:
- IdeWithTypeParam, NamespacedIde, QualifiedIde
public class Ide
- extends NodeImplBase
- Author:
- Andreas Gawecki
bound
protected boolean bound
rewriteThis
protected boolean rewriteThis
Ide
public Ide(String ide)
Ide
public Ide(JooSymbol ide)
fromQName
public static Ide fromQName(JooSymbol qnameSymbol)
getScope
public Scope getScope()
getIde
public JooSymbol getIde()
scope
public void scope(Scope scope)
generateJsCode
protected void generateJsCode(JsWriter out)
throws IOException
- Specified by:
generateJsCode in class NodeImplBase
- Throws:
IOException
generateAsApiCode
protected void generateAsApiCode(JsWriter out)
throws IOException
- Description copied from class:
NodeImplBase
- Default implementation generates same code as JS. Overwritten where this must differ.
- Overrides:
generateAsApiCode in class NodeImplBase
- Throws:
IOException
getQualifiedName
public String[] getQualifiedName()
getQualifiedNameStr
public String getQualifiedNameStr()
getName
public String getName()
getSymbol
public JooSymbol getSymbol()
isQualifier
public boolean isQualifier()
setQualified
protected void setQualified(Ide qualifier)
isQualified
public boolean isQualified()
getQualified
public Ide getQualified()
getQualifier
protected Ide getQualifier()
isQualifiedByThis
protected boolean isQualifiedByThis()
isQualifiedBySuper
protected boolean isQualifiedBySuper()
isThisAccess
protected boolean isThisAccess()
addExternalUsage
public boolean addExternalUsage()
resolveDeclaration
public IdeDeclaration resolveDeclaration()
- Resolve the declaration of this ide to the underlying declaration.
callable after scoping phase
- Returns:
- null if the declaration cannot be resolved
getDeclaration
public IdeDeclaration getDeclaration()
- callable after scoping phase
- Throws:
Jooc.CompilerError - if undeclared
getDeclaration
public IdeDeclaration getDeclaration(boolean errorIfUndeclared)
- callable after scoping phase
qualify
public Ide qualify(JooSymbol symQualifier,
JooSymbol symDot)
analyzeAsExpr
public void analyzeAsExpr(net.jangaroo.jooc.AstNode exprParent,
net.jangaroo.jooc.Expr parentExpr,
AnalyzeContext context)
usageInExpr
public void usageInExpr(net.jangaroo.jooc.AstNode exprParent)
getMemberDeclaration
protected IdeDeclaration getMemberDeclaration()
generateCodeAsExpr
protected void generateCodeAsExpr(JsWriter out)
throws IOException
- Throws:
IOException
writeBoundMethodAccess
protected void writeBoundMethodAccess(JsWriter out,
Ide optIde,
JooSymbol optSymDot,
IdeDeclaration decl)
throws IOException
- Throws:
IOException
resolveMember
protected static IdeDeclaration resolveMember(IdeDeclaration type,
Ide memberIde)
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2002-2011 CoreMedia AG. All Rights Reserved.