public class GroupStatement extends Statement
comment, identifier, label, lineNumber, sourceFile, sourceURI
Constructor and Description |
---|
GroupStatement(Label sourceLabel,
int lineNumber,
String identifier)
Constructs an empty group statement
|
GroupStatement(Label sourceLabel,
int lineNumber,
String identifier,
Map<DictIdentifier,List<Statement>> statements)
Constructs a group statement that contains the given statements
|
Modifier and Type | Method and Description |
---|---|
void |
addStatement(Statement statement) |
boolean |
equals(Object object) |
AttributeStatement |
getAttribute(String id)
Retrieves the named attribute.
|
List<AttributeStatement> |
getAttributes()
Retrieves the attributes of this group.
|
List<Statement> |
getStatements() |
boolean |
hasAttribute(String id) |
int |
hashcode() |
attachComment, compareTo, getComment, getIdentifier, getLabel, getLineNumber, getSourceFile, getSourceString, getSourceURI, toString, validateCommentType, validateElementType, validateGroupType, validateObjectType, validatePointerType, validateType
public GroupStatement(Label sourceLabel, int lineNumber, String identifier)
lineNumber
- at which this statement occursidentifier
- of the statementsourceLabel
- in which this statement occurspublic GroupStatement(Label sourceLabel, int lineNumber, String identifier, Map<DictIdentifier,List<Statement>> statements)
lineNumber
- at which this statement occursidentifier
- of the statementstatements
- contained within this group statementpublic AttributeStatement getAttribute(String id)
id
- public List<AttributeStatement> getAttributes()
public void addStatement(Statement statement)
public boolean hasAttribute(String id)
public int hashcode()
Copyright © 2005–2015 Planetary Data System. All rights reserved.