net.jangaroo.jooc
Class Ide
java.lang.Object
net.jangaroo.jooc.NodeImplBase
net.jangaroo.jooc.Ide
- Direct Known Subclasses:
- NamespacedIde, QualifiedIde
public class Ide
- extends NodeImplBase
- Author:
- Andreas Gawecki
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
bound
protected boolean bound
rewriteThis
protected boolean rewriteThis
Ide
public Ide(java.lang.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 java.io.IOException
- Specified by:
generateJsCode in class NodeImplBase
- Throws:
java.io.IOException
getQualifiedName
public java.lang.String[] getQualifiedName()
getQualifiedNameStr
public java.lang.String getQualifiedNameStr()
getName
public java.lang.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 java.io.IOException
- Throws:
java.io.IOException
writeBoundMethodAccess
protected void writeBoundMethodAccess(JsWriter out,
Ide optIde,
JooSymbol optSymDot,
IdeDeclaration decl)
throws java.io.IOException
- Throws:
java.io.IOException
resolveMember
protected static IdeDeclaration resolveMember(IdeDeclaration type,
Ide memberIde)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright © 2002-2010 CoreMedia AG. All Rights Reserved.