org.sonar.javascript.model
Class TreeImpl

java.lang.Object
  extended by org.sonar.javascript.model.TreeImpl
Direct Known Subclasses:
TreeImpl.ArrayLiteralTreeImpl, TreeImpl.BinaryOperatorTreeImpl, TreeImpl.BlockTreeImpl, TreeImpl.BreakStatementTreeImpl, TreeImpl.CaseClauseTreeImpl, TreeImpl.CatchBlockTreeImpl, TreeImpl.CommaOperatorTreeImpl, TreeImpl.ConditionalOperatorTreeImpl, TreeImpl.ContinueStatementTreeImpl, TreeImpl.DebuggerStatementTreeImpl, TreeImpl.DoWhileStatementTreeImpl, TreeImpl.EmptyStatementTreeImpl, TreeImpl.ExpressionStatementTreeImpl, TreeImpl.ForInStatementTreeImpl, TreeImpl.ForStatementTreeImpl, TreeImpl.FunctionCallTreeImpl, TreeImpl.FunctionTreeImpl, TreeImpl.IdentifierTreeImpl, TreeImpl.IfStatementTreeImpl, TreeImpl.IndexAccessTreeImpl, TreeImpl.LabelledStatementTreeImpl, TreeImpl.LiteralTreeImpl, TreeImpl.NewOperatorTreeImpl, TreeImpl.ObjectLiteralTreeImpl, TreeImpl.ParenthesizedTreeImpl, TreeImpl.ProgramTreeImpl, TreeImpl.PropertyAccessTreeImpl, TreeImpl.PropertyAssignmentTreeImpl, TreeImpl.ReturnStatementTreeImpl, TreeImpl.SwitchStatementTreeImpl, TreeImpl.ThrowStatementTreeImpl, TreeImpl.TryStatementTreeImpl, TreeImpl.UnaryOperatorTreeImpl, TreeImpl.VariableDeclarationTreeImpl, TreeImpl.VariableStatementTreeImpl, TreeImpl.WhileStatementTreeImpl, TreeImpl.WithStatementTreeImpl

public abstract class TreeImpl
extends Object


Nested Class Summary
static class TreeImpl.ArrayLiteralTreeImpl
           
static class TreeImpl.BinaryOperatorTreeImpl
           
static class TreeImpl.BlockTreeImpl
           
static class TreeImpl.BreakStatementTreeImpl
           
static class TreeImpl.CaseClauseTreeImpl
           
static class TreeImpl.CatchBlockTreeImpl
           
static class TreeImpl.CommaOperatorTreeImpl
           
static class TreeImpl.ConditionalOperatorTreeImpl
           
static class TreeImpl.ContinueStatementTreeImpl
           
static class TreeImpl.DebuggerStatementTreeImpl
           
static class TreeImpl.DoWhileStatementTreeImpl
           
static class TreeImpl.EmptyStatementTreeImpl
           
static class TreeImpl.ExpressionStatementTreeImpl
           
static class TreeImpl.ForInStatementTreeImpl
           
static class TreeImpl.ForStatementTreeImpl
           
static class TreeImpl.FunctionCallTreeImpl
           
static class TreeImpl.FunctionTreeImpl
           
static class TreeImpl.IdentifierTreeImpl
           
static class TreeImpl.IfStatementTreeImpl
           
static class TreeImpl.IndexAccessTreeImpl
           
static class TreeImpl.LabelledStatementTreeImpl
           
static class TreeImpl.LiteralTreeImpl
           
static class TreeImpl.NewOperatorTreeImpl
           
static class TreeImpl.ObjectLiteralTreeImpl
           
static class TreeImpl.ParenthesizedTreeImpl
           
static class TreeImpl.ProgramTreeImpl
           
static class TreeImpl.PropertyAccessTreeImpl
           
static class TreeImpl.PropertyAssignmentTreeImpl
           
static class TreeImpl.ReturnStatementTreeImpl
           
static class TreeImpl.SwitchStatementTreeImpl
           
static class TreeImpl.ThrowStatementTreeImpl
           
static class TreeImpl.TryStatementTreeImpl
           
static class TreeImpl.UnaryOperatorTreeImpl
           
static class TreeImpl.VariableDeclarationTreeImpl
           
static class TreeImpl.VariableStatementTreeImpl
           
static class TreeImpl.WhileStatementTreeImpl
           
static class TreeImpl.WithStatementTreeImpl
           
 
Field Summary
 com.sonar.sslr.api.AstNode astNode
           
 
Constructor Summary
protected TreeImpl(com.sonar.sslr.api.AstNode astNode)
           
 
Method Summary
protected abstract  void accept(VisitorsDispatcher visitors)
           
<T extends Tree>
T
as(Class<T> cls)
           
 int getLine()
           
<T extends Tree>
boolean
is(Class<T> cls)
           
protected static void scan(List<? extends Tree> trees, VisitorsDispatcher visitors)
           
protected static void scan(Tree tree, VisitorsDispatcher visitors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

astNode

public final com.sonar.sslr.api.AstNode astNode
Constructor Detail

TreeImpl

protected TreeImpl(com.sonar.sslr.api.AstNode astNode)
Method Detail

getLine

public int getLine()

is

public final <T extends Tree> boolean is(Class<T> cls)

as

public final <T extends Tree> T as(Class<T> cls)

accept

protected abstract void accept(VisitorsDispatcher visitors)

scan

protected static final void scan(@Nullable
                                 List<? extends Tree> trees,
                                 VisitorsDispatcher visitors)

scan

protected static final void scan(@Nullable
                                 Tree tree,
                                 VisitorsDispatcher visitors)


Copyright © 2011-2014 SonarSource and Eriks Nukis. All Rights Reserved.