W3cubDocs

/Groovy 3.0

[Java] Class Statement

  • org.codehaus.groovy.ast.stmt.Statement
public class Statement
extends ASTNode

Base class for any statement.

Methods Summary

Methods
Type Params Return Type Name and description
public void addStatementLabel(String label)
public void copyStatementLabels(Statement that)
public String getStatementLabel()
public List<String> getStatementLabels()
public boolean isEmpty()
public void setStatementLabel(String label)

Inherited Methods Summary

Inherited Methods
Methods inherited from class Name
class ASTNode copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit

Method Detail

public void addStatementLabel(String label)

public void copyStatementLabels(Statement that)

@Deprecated public String getStatementLabel()

public List<String> getStatementLabels()

public boolean isEmpty()

public void setStatementLabel(String label)

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/ast/stmt/Statement.html