Package de.monticore.ast
Class ASTCNode
java.lang.Object
de.monticore.ast.ASTCNode
Foundation class of all AST-classes Shouldn't be used in an implementation, all AST-classes also
share the interface ASTNode
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd_PostComment(int index, Comment postcomment) adds one comment to the postComment list at the position of the given indexbooleanadd_PostComment(Comment postcomment) Adds one new comment to the list of postCommentsvoidadd_PreComment(int index, Comment precomment) adds one comment to the preComment list at the position of the given indexbooleanadd_PreComment(Comment precomment) Adds one new comment to the list of preCommentsbooleanaddAll_PostComments(int index, Collection<Comment> postcomments) adds a list of comments to the postComment list at the position of the given indexbooleanaddAll_PostComments(Collection<Comment> postcomments) Adds a list of comments to the already existing postComment listbooleanaddAll_PreComments(int index, Collection<Comment> precomments) adds a list of comments to the preComment list at the position of the given indexbooleanaddAll_PreComments(Collection<Comment> precomments) Adds a list of comments to the already existing preComment listvoidClears the list of postComments, that only an empty list staysvoidClears the list of preComments, that only an empty list staysbooleancontains_PostComment(Object element) Checks if the list contains the given Object Returns true if the Object is contained in the list of comments and false if it is notbooleancontains_PreComment(Object element) Checks if the list contains the given Object Returns true if the Object is contained in the list of comments and false if it is notbooleancontainsAll_PostComments(Collection<?> element) Checks if the list contains the given Collection of elements Returns true if the Collection is contained in the list of comments and false if it is notbooleancontainsAll_PreComments(Collection<?> element) Checks if the list contains the given Collection of elements Returns true if the Collection is contained in the list of comments and false if it is notabstract ASTNodePerforms a deep clone of this ASTNode and all of its successorsbooleanequals_PostComments(Object element) Returns true if the object equals the postComment list Returns false if the object and the postComment list are not equalbooleanequals_PreComments(Object element) Returns true if the object equals the preComment list Returns false if the object and the preComment list are not equalvoidforEach_PostComments(Consumer<? super Comment> action) Consumer is given that performs an action but does not return a valuevoidforEach_PreComments(Consumer<? super Comment> action) Consumer is given that performs an action but does not return a valueget_PostComment(int index) Returns one comment of the list from the position of the given indexreturns the complete postComments listget_PreComment(int index) Returns one comment of the list from the position of the given indexreturns the complete preComments listde.se_rwth.commons.SourcePositionReturns the end position of this ASTNodede.se_rwth.commons.SourcePositionReturns the start source position of this ASTNodeintReturns the hashCode of the postComment as an intintReturns the hashCode of the preComment as an intintindexOf_PostComment(Object element) Returns the index of the given element if this exists in the listintindexOf_PreComment(Object element) Returns the index of the given element if it exists in the listbooleanChecks if the list is empty, has no elements Returns true if the list is empty and false if it has elementsbooleanChecks if the list is empty, has no elements Returns true if the list is empty and false if it has elementsbooleanbooleanReturns the Iterator for the postComment listReturns the Iterator for the preComment listintlastIndexOf_PostComment(Object element) Returns the last index of the given element if this exists in the listintlastIndexOf_PreComment(Object element) Returns the last index of the given element if it exists in the listReturns the ListIterator of the postComment listlistIterator_PostComments(int index) returns a ListIterator of the type Comment for the postComment listReturns the ListIterator of the preComment listlistIterator_PreComments(int index) returns a ListIterator of the type Comment for the preComment listReturns the parallel Steam of the postComment listReturns the parallel Steam of the preComment listremove_PostComment(int index) Returns the new postComment list without the removed element at the given indexbooleanremove_PostComment(Object element) removes one given element from the list if this element is containedremove_PreComment(int index) Returns the new preComment list without the removed element at the given indexbooleanremove_PreComment(Object element) Removes one given element from the list if this element is containedbooleanremoveAll_PostComments(Collection<?> element) removes a collection of elements from the list if the elements are containedbooleanremoveAll_PreComments(Collection<?> element) Removes a collection of elements from the list if the elements are containedbooleanremoveIf_PostComment(Predicate<? super Comment> filter) removes if the comment if the postdicate is fulfilledbooleanremoveIf_PreComment(Predicate<? super Comment> filter) removes if the comment if the predicate is fulfilledvoidreplaceAll_PostComments(UnaryOperator<Comment> operator) replaces all postComments that fit to the given unaryOperatorvoidreplaceAll_PreComments(UnaryOperator<Comment> operator) replaces all preComments that fit to the given unaryOperatorbooleanretainAll_PostComments(Collection<?> element) Retrains a collection of elements from the list if the elements are containedbooleanretainAll_PreComments(Collection<?> element) Retrains a collection of elements from the list if the elements are containedset_PostComment(int index, Comment precomment) sets the comment at the given index and returns that commentvoidset_PostCommentList(List<Comment> postComments) sets the complete list of postComments to the given postComment listset_PreComment(int index, Comment precomment) sets the comment at the given index and returns that commentvoidset_PreCommentList(List<Comment> preComments) sets the complete list of preComments to the given preComment listvoidset_SourcePositionEnd(de.se_rwth.commons.SourcePosition end) Sets the end position of this ASTNodevoidSets the optional end position of this ASTNode absentvoidset_SourcePositionStart(de.se_rwth.commons.SourcePosition start) Sets the start position of this ASTNodevoidSets the optional start position of this ASTNode absentintcounts the number of postComments in the postComment list and returns that number as an Intintcounts the number of preComments in the preComment list and returns that number as an Intvoidsort_PostComments(Comparator<? super Comment> comparator) sorts the postComment list through a given way of comparing through the comparatorvoidsort_PreComments(Comparator<? super Comment> comparator) sorts the preComment list through a given way of comparing through the comparatorReturns the Spliterator of the postComment listReturns the Spliterator of the preComment listReturns the Steam of the postComment listReturns the Steam of the preComment listsubList_PostComments(int start, int end) Returns the sub list form the postComment list form the start to the end index which are givensubList_PreComments(int start, int end) Returns the sub list form the preComment list form the start to the end index which are givenObject[]converts the commentlist into an array of the type Object and returns thar arrayComment[]toArray_PostComments(Comment[] array) Converts the list of postComments into an array of comments and returns that arrayObject[]converts the commentlist into an array of the type Object and returns thar arrayComment[]toArray_PreComments(Comment[] array) Converts the list of preComments into an array of comments and returns that arrayMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.monticore.ast.ASTNode
accept, deepEquals, deepEquals, deepEqualsWithComments, deepEqualsWithComments, equalAttributes, equalsWithComments, evaluate, getEnclosingScope
-
Field Details
-
start
-
end
-
precomments
-
postcomments
-
-
Constructor Details
-
ASTCNode
public ASTCNode()
-
-
Method Details
-
deepClone
Description copied from interface:ASTNodePerforms a deep clone of this ASTNode and all of its successors -
get_SourcePositionEnd
public de.se_rwth.commons.SourcePosition get_SourcePositionEnd()Description copied from interface:ASTNodeReturns the end position of this ASTNode- Specified by:
get_SourcePositionEndin interfaceASTNode- Returns:
- end position of this ASTNode
-
set_SourcePositionEnd
public void set_SourcePositionEnd(de.se_rwth.commons.SourcePosition end) Description copied from interface:ASTNodeSets the end position of this ASTNode- Specified by:
set_SourcePositionEndin interfaceASTNode- Parameters:
end- end position of this ASTNode
-
isPresent_SourcePositionEnd
public boolean isPresent_SourcePositionEnd()- Specified by:
isPresent_SourcePositionEndin interfaceASTNode- Returns:
- true if the optional source position end of this ASTNode is present
-
set_SourcePositionEndAbsent
public void set_SourcePositionEndAbsent()Description copied from interface:ASTNodeSets the optional end position of this ASTNode absent- Specified by:
set_SourcePositionEndAbsentin interfaceASTNode
-
get_SourcePositionStart
public de.se_rwth.commons.SourcePosition get_SourcePositionStart()Description copied from interface:ASTNodeReturns the start source position of this ASTNode- Specified by:
get_SourcePositionStartin interfaceASTNode- Returns:
- start position of this ASTNode
-
set_SourcePositionStart
public void set_SourcePositionStart(de.se_rwth.commons.SourcePosition start) Description copied from interface:ASTNodeSets the start position of this ASTNode- Specified by:
set_SourcePositionStartin interfaceASTNode- Parameters:
start- start position of this ASTNode
-
isPresent_SourcePositionStart
public boolean isPresent_SourcePositionStart()- Specified by:
isPresent_SourcePositionStartin interfaceASTNode- Returns:
- true if the optional source position start of this ASTNode is present
-
set_SourcePositionStartAbsent
public void set_SourcePositionStartAbsent()Description copied from interface:ASTNodeSets the optional start position of this ASTNode absent- Specified by:
set_SourcePositionStartAbsentin interfaceASTNode
-
clear_PreComments
public void clear_PreComments()Description copied from interface:ASTNodeClears the list of preComments, that only an empty list stays- Specified by:
clear_PreCommentsin interfaceASTNode
-
add_PreComment
Description copied from interface:ASTNodeAdds one new comment to the list of preComments- Specified by:
add_PreCommentin interfaceASTNode- Parameters:
precomment- one comment- Returns:
- boolean
-
addAll_PreComments
Description copied from interface:ASTNodeAdds a list of comments to the already existing preComment list- Specified by:
addAll_PreCommentsin interfaceASTNode- Parameters:
precomments- a list of comments- Returns:
- boolean
-
contains_PreComment
Description copied from interface:ASTNodeChecks if the list contains the given Object Returns true if the Object is contained in the list of comments and false if it is not- Specified by:
contains_PreCommentin interfaceASTNode- Parameters:
element- which should be contained in the comments- Returns:
- boolean true if the list contains the Object
-
containsAll_PreComments
Description copied from interface:ASTNodeChecks if the list contains the given Collection of elements Returns true if the Collection is contained in the list of comments and false if it is not- Specified by:
containsAll_PreCommentsin interfaceASTNode- Parameters:
element- collection which should be contained in the comment list- Returns:
- boolean true if the list contains the Object
-
isEmpty_PreComments
public boolean isEmpty_PreComments()Description copied from interface:ASTNodeChecks if the list is empty, has no elements Returns true if the list is empty and false if it has elements- Specified by:
isEmpty_PreCommentsin interfaceASTNode- Returns:
- boolean true if the list is empty
-
iterator_PreComments
Description copied from interface:ASTNodeReturns the Iterator for the preComment list- Specified by:
iterator_PreCommentsin interfaceASTNode- Returns:
- Iterator of comments to iterate over the preComment list
-
remove_PreComment
Description copied from interface:ASTNodeRemoves one given element from the list if this element is contained- Specified by:
remove_PreCommentin interfaceASTNode- Parameters:
element- which should be removed if it is present- Returns:
- boolean
-
removeAll_PreComments
Description copied from interface:ASTNodeRemoves a collection of elements from the list if the elements are contained- Specified by:
removeAll_PreCommentsin interfaceASTNode- Parameters:
element- collection which should be removed if they are present- Returns:
- boolean
-
retainAll_PreComments
Description copied from interface:ASTNodeRetrains a collection of elements from the list if the elements are contained- Specified by:
retainAll_PreCommentsin interfaceASTNode- Parameters:
element- collection which should be retrained if they are present- Returns:
- boolean
-
size_PreComments
public int size_PreComments()Description copied from interface:ASTNodecounts the number of preComments in the preComment list and returns that number as an Int- Specified by:
size_PreCommentsin interfaceASTNode- Returns:
- int the number of comments is returned
-
toArray_PreComments
Description copied from interface:ASTNodeConverts the list of preComments into an array of comments and returns that array- Specified by:
toArray_PreCommentsin interfaceASTNode- Parameters:
array- into which the comments should be added- Returns:
- Comment[] array which contains all the comments
-
removeIf_PreComment
Description copied from interface:ASTNoderemoves if the comment if the predicate is fulfilled- Specified by:
removeIf_PreCommentin interfaceASTNode- Parameters:
filter- which selects different comments- Returns:
- boolean
-
spliterator_PreComments
Description copied from interface:ASTNodeReturns the Spliterator of the preComment list- Specified by:
spliterator_PreCommentsin interfaceASTNode- Returns:
- Spliterator of the preComment list
-
stream_PreComments
Description copied from interface:ASTNodeReturns the Steam of the preComment list- Specified by:
stream_PreCommentsin interfaceASTNode- Returns:
- Steam of the preComment list
-
parallelStream_PreComments
Description copied from interface:ASTNodeReturns the parallel Steam of the preComment list- Specified by:
parallelStream_PreCommentsin interfaceASTNode- Returns:
- parallel Stream of the preComment list
-
forEach_PreComments
Description copied from interface:ASTNodeConsumer is given that performs an action but does not return a value- Specified by:
forEach_PreCommentsin interfaceASTNode- Parameters:
action- that does something but has no return value
-
add_PreComment
Description copied from interface:ASTNodeadds one comment to the preComment list at the position of the given index- Specified by:
add_PreCommentin interfaceASTNode- Parameters:
index- of the existing list where it should be addedprecomment- the comment that is added to the existing list
-
addAll_PreComments
Description copied from interface:ASTNodeadds a list of comments to the preComment list at the position of the given index- Specified by:
addAll_PreCommentsin interfaceASTNode- Parameters:
index- of the existing list where the new list should be addedprecomments- list that is added to the existing list
-
get_PreComment
Description copied from interface:ASTNodeReturns one comment of the list from the position of the given index- Specified by:
get_PreCommentin interfaceASTNode- Parameters:
index- in the existing list where the comment should be returned- Returns:
- Comment at the given index is returned
-
indexOf_PreComment
Description copied from interface:ASTNodeReturns the index of the given element if it exists in the list- Specified by:
indexOf_PreCommentin interfaceASTNode- Parameters:
element- of which the index in the comment list should be returned- Returns:
- int index where the Object is found
-
lastIndexOf_PreComment
Description copied from interface:ASTNodeReturns the last index of the given element if it exists in the list- Specified by:
lastIndexOf_PreCommentin interfaceASTNode- Parameters:
element- of which the last index in the comment list should be returned- Returns:
- int index where the Object is found latest
-
equals_PreComments
Description copied from interface:ASTNodeReturns true if the object equals the preComment list Returns false if the object and the preComment list are not equal- Specified by:
equals_PreCommentsin interfaceASTNode- Parameters:
element- which should be equal to the preComment list- Returns:
- boolean if the object an preComment list are equal or not
-
hashCode_PreComments
public int hashCode_PreComments()Description copied from interface:ASTNodeReturns the hashCode of the preComment as an int- Specified by:
hashCode_PreCommentsin interfaceASTNode- Returns:
- int the hashCode of the preComment
-
listIterator_PreComments
Description copied from interface:ASTNodeReturns the ListIterator of the preComment list- Specified by:
listIterator_PreCommentsin interfaceASTNode- Returns:
- ListIterator which iterates over the list of preComments
-
remove_PreComment
Description copied from interface:ASTNodeReturns the new preComment list without the removed element at the given index- Specified by:
remove_PreCommentin interfaceASTNode- Parameters:
index- where the element should be removed- Returns:
- the Comment previously at the specified position
-
subList_PreComments
Description copied from interface:ASTNodeReturns the sub list form the preComment list form the start to the end index which are given- Specified by:
subList_PreCommentsin interfaceASTNode- Parameters:
start- index of the sublistend- index of the sublist- Returns:
- ListIterator which iterates over the list of preComments
-
replaceAll_PreComments
Description copied from interface:ASTNodereplaces all preComments that fit to the given unaryOperator- Specified by:
replaceAll_PreCommentsin interfaceASTNode- Parameters:
operator- that defines which preComments should be replaced
-
sort_PreComments
Description copied from interface:ASTNodesorts the preComment list through a given way of comparing through the comparator- Specified by:
sort_PreCommentsin interfaceASTNode- Parameters:
comparator- that defines in which way the preComments should be sorted
-
set_PreCommentList
Description copied from interface:ASTNodesets the complete list of preComments to the given preComment list- Specified by:
set_PreCommentListin interfaceASTNode- Parameters:
preComments- list that should be set
-
get_PreCommentList
Description copied from interface:ASTNodereturns the complete preComments list- Specified by:
get_PreCommentListin interfaceASTNode- Returns:
- List that is contained in the preComment list at the moment
-
listIterator_PreComments
Description copied from interface:ASTNodereturns a ListIterator of the type Comment for the preComment list- Specified by:
listIterator_PreCommentsin interfaceASTNode- Parameters:
index- of the iterator- Returns:
- ListIterator of a special index
-
set_PreComment
Description copied from interface:ASTNodesets the comment at the given index and returns that comment- Specified by:
set_PreCommentin interfaceASTNode- Parameters:
index- where the comment should be added to the listprecomment- that should be added at the index- Returns:
- Comment at a special index
-
toArray_PreComments
Description copied from interface:ASTNodeconverts the commentlist into an array of the type Object and returns thar array- Specified by:
toArray_PreCommentsin interfaceASTNode- Returns:
- an array of the type Object
-
clear_PostComments
public void clear_PostComments()Description copied from interface:ASTNodeClears the list of postComments, that only an empty list stays- Specified by:
clear_PostCommentsin interfaceASTNode
-
add_PostComment
Description copied from interface:ASTNodeAdds one new comment to the list of postComments- Specified by:
add_PostCommentin interfaceASTNode- Parameters:
postcomment- one comment- Returns:
- boolean
-
addAll_PostComments
Description copied from interface:ASTNodeAdds a list of comments to the already existing postComment list- Specified by:
addAll_PostCommentsin interfaceASTNode- Parameters:
postcomments- a list of comments- Returns:
- boolean
-
contains_PostComment
Description copied from interface:ASTNodeChecks if the list contains the given Object Returns true if the Object is contained in the list of comments and false if it is not- Specified by:
contains_PostCommentin interfaceASTNode- Parameters:
element- which should be contained in the comments- Returns:
- boolean true if the list contains the Object
-
containsAll_PostComments
Description copied from interface:ASTNodeChecks if the list contains the given Collection of elements Returns true if the Collection is contained in the list of comments and false if it is not- Specified by:
containsAll_PostCommentsin interfaceASTNode- Parameters:
element- collection of elements which should be contained in the comment list- Returns:
- boolean true if the list contains the Object
-
isEmpty_PostComments
public boolean isEmpty_PostComments()Description copied from interface:ASTNodeChecks if the list is empty, has no elements Returns true if the list is empty and false if it has elements- Specified by:
isEmpty_PostCommentsin interfaceASTNode- Returns:
- boolean true if the list is empty
-
iterator_PostComments
Description copied from interface:ASTNodeReturns the Iterator for the postComment list- Specified by:
iterator_PostCommentsin interfaceASTNode- Returns:
- Iterator to iterate over the postComment list
-
remove_PostComment
Description copied from interface:ASTNoderemoves one given element from the list if this element is contained- Specified by:
remove_PostCommentin interfaceASTNode- Parameters:
element- which should be removed if it is postsent- Returns:
- boolean
-
removeAll_PostComments
Description copied from interface:ASTNoderemoves a collection of elements from the list if the elements are contained- Specified by:
removeAll_PostCommentsin interfaceASTNode- Parameters:
element- collection which should be removed if they are postsent- Returns:
- boolean true if the elements were postsent and are now removed
-
retainAll_PostComments
Description copied from interface:ASTNodeRetrains a collection of elements from the list if the elements are contained- Specified by:
retainAll_PostCommentsin interfaceASTNode- Parameters:
element- collection which should be retrained if they are present- Returns:
- boolean
-
size_PostComments
public int size_PostComments()Description copied from interface:ASTNodecounts the number of postComments in the postComment list and returns that number as an Int- Specified by:
size_PostCommentsin interfaceASTNode- Returns:
- int the number of comments is returned
-
toArray_PostComments
Description copied from interface:ASTNodeConverts the list of postComments into an array of comments and returns that array- Specified by:
toArray_PostCommentsin interfaceASTNode- Parameters:
array- into which the comments should be added- Returns:
- Comment[] array which contains all the comments
-
removeIf_PostComment
Description copied from interface:ASTNoderemoves if the comment if the postdicate is fulfilled- Specified by:
removeIf_PostCommentin interfaceASTNode- Parameters:
filter- which selects different comments- Returns:
- boolean
-
spliterator_PostComments
Description copied from interface:ASTNodeReturns the Spliterator of the postComment list- Specified by:
spliterator_PostCommentsin interfaceASTNode- Returns:
- Spliterator of the postComment list
-
stream_PostComments
Description copied from interface:ASTNodeReturns the Steam of the postComment list- Specified by:
stream_PostCommentsin interfaceASTNode- Returns:
- Steam of the postComment list
-
parallelStream_PostComments
Description copied from interface:ASTNodeReturns the parallel Steam of the postComment list- Specified by:
parallelStream_PostCommentsin interfaceASTNode- Returns:
- Steam parallel Stream of the postComment list
-
forEach_PostComments
Description copied from interface:ASTNodeConsumer is given that performs an action but does not return a value- Specified by:
forEach_PostCommentsin interfaceASTNode- Parameters:
action- that does something but has no return value
-
add_PostComment
Description copied from interface:ASTNodeadds one comment to the postComment list at the position of the given index- Specified by:
add_PostCommentin interfaceASTNode- Parameters:
index- of the existing list where it should be addedpostcomment- the comment that is added to the existing list
-
addAll_PostComments
Description copied from interface:ASTNodeadds a list of comments to the postComment list at the position of the given index- Specified by:
addAll_PostCommentsin interfaceASTNode- Parameters:
index- of the existing list where the new list should be addedpostcomments- the comment list that is added to the existing list
-
get_PostComment
Description copied from interface:ASTNodeReturns one comment of the list from the position of the given index- Specified by:
get_PostCommentin interfaceASTNode- Parameters:
index- of the existing list where the comment should be returned- Returns:
- Comment at the given index is returned
-
indexOf_PostComment
Description copied from interface:ASTNodeReturns the index of the given element if this exists in the list- Specified by:
indexOf_PostCommentin interfaceASTNode- Parameters:
element- of which the index in the comment list should be returned- Returns:
- int index where the Object is found
-
lastIndexOf_PostComment
Description copied from interface:ASTNodeReturns the last index of the given element if this exists in the list- Specified by:
lastIndexOf_PostCommentin interfaceASTNode- Parameters:
element- of which the last index in the comment list should be returned- Returns:
- int index where the Object is found latest
-
equals_PostComments
Description copied from interface:ASTNodeReturns true if the object equals the postComment list Returns false if the object and the postComment list are not equal- Specified by:
equals_PostCommentsin interfaceASTNode- Parameters:
element- which should be equal to the postComment list- Returns:
- boolean if the object an postComment list are equal or not
-
hashCode_PostComments
public int hashCode_PostComments()Description copied from interface:ASTNodeReturns the hashCode of the postComment as an int- Specified by:
hashCode_PostCommentsin interfaceASTNode- Returns:
- int the hashCode of the postComment
-
listIterator_PostComments
Description copied from interface:ASTNodeReturns the ListIterator of the postComment list- Specified by:
listIterator_PostCommentsin interfaceASTNode- Returns:
- ListIterator which iterates over the list of postComments
-
remove_PostComment
Description copied from interface:ASTNodeReturns the new postComment list without the removed element at the given index- Specified by:
remove_PostCommentin interfaceASTNode- Parameters:
index- where the element should be removed- Returns:
- List where the comment at the index is removed
-
subList_PostComments
Description copied from interface:ASTNodeReturns the sub list form the postComment list form the start to the end index which are given- Specified by:
subList_PostCommentsin interfaceASTNode- Parameters:
start- index of the sublistend- index of the sublist- Returns:
- ListIterator which iterates over the list of postComments
-
replaceAll_PostComments
Description copied from interface:ASTNodereplaces all postComments that fit to the given unaryOperator- Specified by:
replaceAll_PostCommentsin interfaceASTNode- Parameters:
operator- that defines which postComments should be replaced
-
sort_PostComments
Description copied from interface:ASTNodesorts the postComment list through a given way of comparing through the comparator- Specified by:
sort_PostCommentsin interfaceASTNode- Parameters:
comparator- that defines in which way the postComments should be sorted
-
set_PostCommentList
Description copied from interface:ASTNodesets the complete list of postComments to the given postComment list- Specified by:
set_PostCommentListin interfaceASTNode- Parameters:
postComments- list that should be set
-
get_PostCommentList
Description copied from interface:ASTNodereturns the complete postComments list- Specified by:
get_PostCommentListin interfaceASTNode- Returns:
- List that is contained in the postComment list at the moment
-
listIterator_PostComments
Description copied from interface:ASTNodereturns a ListIterator of the type Comment for the postComment list- Specified by:
listIterator_PostCommentsin interfaceASTNode- Parameters:
index- of the iterator- Returns:
- ListIterator of a special index
-
set_PostComment
Description copied from interface:ASTNodesets the comment at the given index and returns that comment- Specified by:
set_PostCommentin interfaceASTNode- Parameters:
index- where the comment should be added to the listprecomment- that should be added at the index- Returns:
- Comment at a special index
-
toArray_PostComments
Description copied from interface:ASTNodeconverts the commentlist into an array of the type Object and returns thar array- Specified by:
toArray_PostCommentsin interfaceASTNode- Returns:
- an array of the type Object
-