Package net.jangaroo.jooc.ast
Class Ide
- java.lang.Object
-
- net.jangaroo.jooc.ast.NodeImplBase
-
- net.jangaroo.jooc.ast.Ide
-
- All Implemented Interfaces:
AstNode
- Direct Known Subclasses:
IdeWithTypeParam,NamespacedIde,QualifiedIde
public class Ide extends NodeImplBase
- Author:
- Andreas Gawecki
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.jangaroo.jooc.ast.NodeImplBase
NodeImplBase.Scoped
-
-
Field Summary
Fields Modifier and Type Field Description static StringTHIS-
Fields inherited from class net.jangaroo.jooc.ast.NodeImplBase
usesInstanceThis
-
-
Method Summary
-
Methods inherited from class net.jangaroo.jooc.ast.NodeImplBase
analyze, analyze, getChildren, getParentNode, makeChildren, notifyInstanceThisUsed, propagateInstanceThisUsed, scope, usesInstanceThis, withNewDeclarationScope, withNewLabelScope
-
-
-
-
Field Detail
-
THIS
public static final String THIS
- See Also:
- Constant Field Values
-
-
Method Detail
-
visit
public void visit(AstVisitor visitor) throws IOException
- Throws:
IOException
-
getScope
public Scope getScope()
-
getIde
public JooSymbol getIde()
-
isThis
public boolean isThis()
-
isSuper
public boolean isSuper()
-
scope
public void scope(Scope scope)
-
getQualifiedName
public String[] getQualifiedName()
-
getQualifiedNameStr
public String getQualifiedNameStr()
-
getName
public String getName()
-
getSymbol
public JooSymbol getSymbol()
-
setQualified
public void setQualified(Ide qualifier)
-
isQualified
public boolean isQualified()
-
getQualified
public Ide getQualified()
-
getQualifier
public Ide getQualifier()
-
isQualifiedByThis
public boolean isQualifiedByThis()
-
isQualifiedBySuper
public boolean isQualifiedBySuper()
-
addExternalUsage
public boolean addExternalUsage(Boolean required)
-
addPublicApiDependency
public void addPublicApiDependency()
-
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:
CompilerError- if undeclared
-
getDeclaration
public IdeDeclaration getDeclaration(boolean errorIfUndeclared)
callable after scoping phase
-
isAssignmentLHS
public boolean isAssignmentLHS()
- Specified by:
isAssignmentLHSin interfaceAstNode- Overrides:
isAssignmentLHSin classNodeImplBase
-
getMemberDeclaration
public IdeDeclaration getMemberDeclaration()
-
setIde
public void setIde(JooSymbol ide)
-
isBound
public boolean isBound()
-
setBound
public void setBound(boolean bound)
-
isRewriteThis
public boolean isRewriteThis()
-
isValidIdentifier
public static boolean isValidIdentifier(String identifier)
-
-