Package net.jangaroo.jooc.ast
Class NodeImplBase
- java.lang.Object
-
- net.jangaroo.jooc.ast.NodeImplBase
-
- All Implemented Interfaces:
AstNode
- Direct Known Subclasses:
AnnotationParameter,CompilationUnit,Directive,Expr,Extends,ForInitializer,Ide,Implements,Initializer,ObjectField,Type,TypeRelation,XmlAttribute,XmlElement,XmlTag
public abstract class NodeImplBase extends Object implements AstNode
- Author:
- Andreas Gawecki
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNodeImplBase.Scoped
-
Field Summary
Fields Modifier and Type Field Description protected booleanusesInstanceThis
-
Constructor Summary
Constructors Constructor Description NodeImplBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidanalyze(AstNode parentNode)<N extends AstNode>
voidanalyze(AstNode parent, List<N> nodes)List<? extends AstNode>getChildren()AstNodegetParentNode()booleanisAssignmentLHS()List<AstNode>makeChildren(Object... objects)voidnotifyInstanceThisUsed()protected booleanpropagateInstanceThisUsed()<N extends AstNode>
voidscope(List<N> nodes, Scope scope)booleanusesInstanceThis()voidwithNewDeclarationScope(AstNode definingNode, Scope scope, NodeImplBase.Scoped scoped)voidwithNewLabelScope(Statement statement, Scope scope, NodeImplBase.Scoped scoped)
-
-
-
Method Detail
-
notifyInstanceThisUsed
public void notifyInstanceThisUsed()
- Specified by:
notifyInstanceThisUsedin interfaceAstNode
-
propagateInstanceThisUsed
protected boolean propagateInstanceThisUsed()
-
usesInstanceThis
public boolean usesInstanceThis()
- Specified by:
usesInstanceThisin interfaceAstNode
-
getChildren
public List<? extends AstNode> getChildren()
- Specified by:
getChildrenin interfaceAstNode
-
getParentNode
public AstNode getParentNode()
- Specified by:
getParentNodein interfaceAstNode
-
withNewDeclarationScope
public void withNewDeclarationScope(AstNode definingNode, Scope scope, NodeImplBase.Scoped scoped)
-
withNewLabelScope
public void withNewLabelScope(Statement statement, Scope scope, NodeImplBase.Scoped scoped)
-
isAssignmentLHS
public boolean isAssignmentLHS()
- Specified by:
isAssignmentLHSin interfaceAstNode
-
-