Uses of Class
org.codehaus.groovy.ast.stmt.Statement

Packages that use Statement
groovy.beans   
org.codehaus.groovy.antlr Parser related classes. 
org.codehaus.groovy.ast Groovy AST nodes for the syntax of the language 
org.codehaus.groovy.ast.expr AST nodes for Groovy expressions 
org.codehaus.groovy.ast.stmt AST nodes for Groovy statements 
org.codehaus.groovy.classgen Generates Java classes for Groovy classes using ASM. 
org.codehaus.groovy.control Compiler control classes. 
org.codehaus.groovy.tools.javac Classes related to the joint compiler. 
org.codehaus.groovy.transform   
 

Uses of Statement in groovy.beans
 

Methods in groovy.beans that return Statement
protected  Statement BindableASTTransformation.createBindableStatement(PropertyNode propertyNode, Expression fieldExpression)
          Creates a statement body similar to: this.firePropertyChange("field", field, field = value)
protected  Statement VetoableASTTransformation.createConstrainedStatement(PropertyNode propertyNode, Expression fieldExpression)
          Creates a statement body silimar to: this.fireVetoableChange("field", field, field = value)
protected  Statement VetoableASTTransformation.createSetStatement(Expression fieldExpression)
          Creates a statement body similar to: field = value

Used when the field is not also @Bindable

 

Methods in groovy.beans with parameters of type Statement
protected  void VetoableASTTransformation.createSetterMethod(ClassNode declaringClass, PropertyNode propertyNode, java.lang.String setterName, Statement setterBlock)
          Creates a setter method with the given body.
protected  void BindableASTTransformation.createSetterMethod(ClassNode declaringClass, PropertyNode propertyNode, java.lang.String setterName, Statement setterBlock)
          Creates a setter method with the given body.
 

Uses of Statement in org.codehaus.groovy.antlr
 

Methods in org.codehaus.groovy.antlr that return Statement
protected  Statement AntlrParserPlugin.assertStatement(antlr.collections.AST assertNode)
           
protected  Statement AntlrParserPlugin.breakStatement(antlr.collections.AST node)
           
protected  Statement AntlrParserPlugin.caseStatements(antlr.collections.AST node, java.util.List cases)
           
protected  Statement AntlrParserPlugin.continueStatement(antlr.collections.AST node)
           
protected  Statement AntlrParserPlugin.forStatement(antlr.collections.AST forNode)
           
protected  Statement AntlrParserPlugin.ifStatement(antlr.collections.AST ifNode)
           
protected  Statement AntlrParserPlugin.labelledStatement(antlr.collections.AST labelNode)
           
protected  Statement AntlrParserPlugin.methodCall(antlr.collections.AST code)
           
protected  Statement AntlrParserPlugin.returnStatement(antlr.collections.AST node)
           
protected  Statement AntlrParserPlugin.statement(antlr.collections.AST node)
           
protected  Statement AntlrParserPlugin.statementList(antlr.collections.AST code)
           
protected  Statement AntlrParserPlugin.statementListNoChild(antlr.collections.AST node, antlr.collections.AST alternativeConfigureNode)
           
protected  Statement AntlrParserPlugin.switchStatement(antlr.collections.AST switchNode)
           
protected  Statement AntlrParserPlugin.synchronizedStatement(antlr.collections.AST syncNode)
           
protected  Statement AntlrParserPlugin.throwStatement(antlr.collections.AST node)
           
protected  Statement AntlrParserPlugin.tryStatement(antlr.collections.AST tryStatementNode)
           
protected  Statement AntlrParserPlugin.variableDef(antlr.collections.AST variableDef)
           
protected  Statement AntlrParserPlugin.whileStatement(antlr.collections.AST whileNode)
           
 

Uses of Statement in org.codehaus.groovy.ast
 

Fields in org.codehaus.groovy.ast declared as Statement
private  Statement MethodNode.code
           
private  Statement PropertyNode.getterBlock
           
private  Statement PropertyNode.setterBlock
           
 

Methods in org.codehaus.groovy.ast that return Statement
 Statement MethodNode.getCode()
           
 Statement MethodNode.getFirstStatement()
           
 Statement PropertyNode.getGetterBlock()
           
 Statement PropertyNode.getSetterBlock()
           
 

Methods in org.codehaus.groovy.ast with parameters of type Statement
 ConstructorNode ClassNode.addConstructor(int modifiers, Parameter[] parameters, ClassNode[] exceptions, Statement code)
           
 MethodNode ClassNode.addMethod(java.lang.String name, int modifiers, ClassNode returnType, Parameter[] parameters, ClassNode[] exceptions, Statement code)
          If a method with the given name and parameters is already defined then it is returned otherwise the given method is added to this node.
 void ClassNode.addObjectInitializerStatements(Statement statements)
           
 PropertyNode ClassNode.addProperty(java.lang.String name, int modifiers, ClassNode type, Expression initialValueExpression, Statement getterBlock, Statement setterBlock)
           
 void ModuleNode.addStatement(Statement node)
           
 MethodNode ClassNode.addSyntheticMethod(java.lang.String name, int modifiers, ClassNode returnType, Parameter[] parameters, ClassNode[] exceptions, Statement code)
          Adds a synthetic method as part of the compilation process
 void MethodNode.setCode(Statement code)
           
 void PropertyNode.setGetterBlock(Statement getterBlock)
           
 void PropertyNode.setSetterBlock(Statement setterBlock)
           
protected  void ClassCodeVisitorSupport.visitClassCodeContainer(Statement code)
           
protected  void ClassCodeVisitorSupport.visitStatement(Statement statement)
           
 

Constructors in org.codehaus.groovy.ast with parameters of type Statement
ConstructorNode(int modifiers, Parameter[] parameters, ClassNode[] exceptions, Statement code)
           
ConstructorNode(int modifiers, Statement code)
           
MethodNode(java.lang.String name, int modifiers, ClassNode returnType, Parameter[] parameters, ClassNode[] exceptions, Statement code)
           
PropertyNode(FieldNode field, int modifiers, Statement getterBlock, Statement setterBlock)
           
PropertyNode(java.lang.String name, int modifiers, ClassNode type, ClassNode owner, Expression initialValueExpression, Statement getterBlock, Statement setterBlock)
           
 

Uses of Statement in org.codehaus.groovy.ast.expr
 

Fields in org.codehaus.groovy.ast.expr declared as Statement
private  Statement ClosureExpression.code
           
 

Methods in org.codehaus.groovy.ast.expr that return Statement
 Statement ClosureExpression.getCode()
           
 

Constructors in org.codehaus.groovy.ast.expr with parameters of type Statement
ClosureExpression(Parameter[] parameters, Statement code)
           
 

Uses of Statement in org.codehaus.groovy.ast.stmt
 

Subclasses of Statement in org.codehaus.groovy.ast.stmt
 class AssertStatement
          Represents an assert statement such as assert i != 0 : "should never be zero";
 class BlockStatement
          A list of statements
 class BreakStatement
          Represents a break statement in a switch or loop statement
 class CaseStatement
          Represents a case statement in a switch statement
 class CatchStatement
          Represents a catch (Exception var) { } statement
 class ContinueStatement
          Represents a continue statement in a loop statement
 class DoWhileStatement
          Represents a do { ...
 class EmptyStatement
          Represents an empty statement
 class ExpressionStatement
          A simple statement such as a method call where the return value is ignored
 class ForStatement
          Represents a standard for loop in Groovy
 class IfStatement
          Represents an if (condition) { ...
 class ReturnStatement
          A return statement
 class SwitchStatement
          Represents a switch (object) { case value: ...
 class SynchronizedStatement
          Represents a synchronized statement
 class ThrowStatement
          Represents a throw statement
 class TryCatchStatement
          Represents a try { ...
 class WhileStatement
          Represents a while (condition) { ...
 

Fields in org.codehaus.groovy.ast.stmt declared as Statement
private  Statement CatchStatement.code
           
private  Statement CaseStatement.code
           
private  Statement SynchronizedStatement.code
           
private  Statement SwitchStatement.defaultStatement
           
private  Statement IfStatement.elseBlock
           
private  Statement TryCatchStatement.finallyStatement
           
private  Statement IfStatement.ifBlock
           
private  Statement ForStatement.loopBlock
           
private  Statement DoWhileStatement.loopBlock
           
private  Statement WhileStatement.loopBlock
           
private  Statement TryCatchStatement.tryStatement
           
 

Methods in org.codehaus.groovy.ast.stmt that return Statement
 Statement CatchStatement.getCode()
           
 Statement CaseStatement.getCode()
           
 Statement SynchronizedStatement.getCode()
           
 Statement SwitchStatement.getDefaultStatement()
           
 Statement IfStatement.getElseBlock()
           
 Statement TryCatchStatement.getFinallyStatement()
           
 Statement IfStatement.getIfBlock()
           
 Statement ForStatement.getLoopBlock()
           
 Statement DoWhileStatement.getLoopBlock()
           
 Statement WhileStatement.getLoopBlock()
           
 Statement TryCatchStatement.getTryStatement()
           
 

Methods in org.codehaus.groovy.ast.stmt with parameters of type Statement
 void BlockStatement.addStatement(Statement statement)
           
 void TryCatchStatement.setCatchStatement(int idx, Statement catchStatement)
           
 void CatchStatement.setCode(Statement code)
           
 void CaseStatement.setCode(Statement code)
           
 void SynchronizedStatement.setCode(Statement statement)
           
 void SwitchStatement.setDefaultStatement(Statement defaultStatement)
           
 void IfStatement.setElseBlock(Statement statement)
           
 void TryCatchStatement.setFinallyStatement(Statement finallyStatement)
           
 void IfStatement.setIfBlock(Statement statement)
           
 void ForStatement.setLoopBlock(Statement loopBlock)
           
 void DoWhileStatement.setLoopBlock(Statement loopBlock)
           
 void WhileStatement.setLoopBlock(Statement loopBlock)
           
 void TryCatchStatement.setTryStatement(Statement tryStatement)
           
 

Constructors in org.codehaus.groovy.ast.stmt with parameters of type Statement
BlockStatement(Statement[] statements, VariableScope scope)
           
CaseStatement(Expression expression, Statement code)
           
CatchStatement(Parameter variable, Statement code)
           
DoWhileStatement(BooleanExpression booleanExpression, Statement loopBlock)
           
ForStatement(Parameter variable, Expression collectionExpression, Statement loopBlock)
           
IfStatement(BooleanExpression booleanExpression, Statement ifBlock, Statement elseBlock)
           
SwitchStatement(Expression expression, java.util.List caseStatements, Statement defaultStatement)
           
SwitchStatement(Expression expression, Statement defaultStatement)
           
SynchronizedStatement(Expression expression, Statement code)
           
TryCatchStatement(Statement tryStatement, Statement finallyStatement)
           
WhileStatement(BooleanExpression booleanExpression, Statement loopBlock)
           
 

Uses of Statement in org.codehaus.groovy.classgen
 

Subclasses of Statement in org.codehaus.groovy.classgen
 class BytecodeSequence
          This class repersents a sequence of BytecodeInstructions or ASTNodes.
 

Methods in org.codehaus.groovy.classgen that return Statement
private  Statement Verifier.addReturnsIfNeeded(Statement statement, VariableScope scope)
           
protected  Statement Verifier.createGetterBlock(PropertyNode propertyNode, FieldNode field)
           
protected  Statement Verifier.createSetterBlock(PropertyNode propertyNode, FieldNode field)
           
 

Methods in org.codehaus.groovy.classgen with parameters of type Statement
private  Statement Verifier.addReturnsIfNeeded(Statement statement, VariableScope scope)
           
private  ConstructorCallExpression Verifier.getFirstIfSpecialConstructorCall(Statement code)
           
private  java.lang.String EnumVisitor.getUniqueVariableName(java.lang.String name, Statement code)
           
private  boolean Verifier.statementReturns(Statement last)
           
protected  void AsmClassGenerator.visitStatement(Statement statement)
           
private  void AsmClassGenerator.visitStdMethod(MethodNode node, boolean isConstructor, Parameter[] parameters, Statement code)
           
 

Uses of Statement in org.codehaus.groovy.control
 

Methods in org.codehaus.groovy.control with parameters of type Statement
protected  void LabelVerifier.visitClassCodeContainer(Statement code)
           
 void LabelVerifier.visitStatement(Statement statement)
           
 

Uses of Statement in org.codehaus.groovy.tools.javac
 

Methods in org.codehaus.groovy.tools.javac with parameters of type Statement
protected  void JavaAwareResolveVisitor.visitClassCodeContainer(Statement code)
           
 

Uses of Statement in org.codehaus.groovy.transform
 

Methods in org.codehaus.groovy.transform that return Statement
private  Statement ImmutableASTTransformation.assignStatement(Expression fieldExpr, Expression value)
           
private  Statement ImmutableASTTransformation.calculateHashStatements(Expression hash, java.util.List<PropertyNode> list)
           
private  Statement ImmutableASTTransformation.createConstructorStatement(ClassNode cNode, PropertyNode pNode)
           
private  Statement ImmutableASTTransformation.createConstructorStatementArrayOrCloneable(FieldNode fNode)
           
private  Statement ImmutableASTTransformation.createConstructorStatementCollection(FieldNode fNode)
           
private  Statement ImmutableASTTransformation.createConstructorStatementDate(FieldNode fNode)
           
private  Statement ImmutableASTTransformation.createConstructorStatementDefault(FieldNode fNode)
           
private  Statement ImmutableASTTransformation.createConstructorStatementGuarded(ClassNode cNode, FieldNode fNode)
           
private  Statement ImmutableASTTransformation.createConstructorStatementMapSpecial(FieldNode fNode)
           
private  Statement ImmutableASTTransformation.createGetterBody(FieldNode fNode)
           
private  Statement ImmutableASTTransformation.createGetterBodyArrayOrCloneable(FieldNode fNode)
           
private  Statement ImmutableASTTransformation.createGetterBodyDate(FieldNode fNode)
           
private  Statement ImmutableASTTransformation.createGetterBodyDefault(FieldNode fNode)
           
private  Statement ImmutableASTTransformation.returnFalseIfPropertyNotEqual(PropertyNode pNode, Expression other)
           
private  Statement ImmutableASTTransformation.returnFalseIfWrongType(ClassNode cNode, Expression other)
           
private  Statement ImmutableASTTransformation.safeExpression(Expression fieldExpr, Expression expression)
           
private  Statement ImmutableASTTransformation.toStringPropertyName(Expression result, java.lang.String fName)
           
 

Methods in org.codehaus.groovy.transform with parameters of type Statement
private  void ImmutableASTTransformation.adjustPropertyNode(PropertyNode pNode, Statement getterBody)
           
 



Copyright © ${year} The Codehaus. All Rights Reserved.