org.eclipse.emf.codegen.merge.java.facade.ast
Class ASTJMember
java.lang.Object
org.eclipse.emf.codegen.merge.java.facade.AbstractJNode
org.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode
org.eclipse.emf.codegen.merge.java.facade.ast.ASTJMember
- All Implemented Interfaces:
- JMember, JNode
- Direct Known Subclasses:
- ASTJField, ASTJInitializer, ASTJMethod, ASTJType
- public abstract class ASTJMember
- extends ASTJNode
- implements JMember
- Since:
- 2.2.0
Constructor Summary |
ASTJMember(org.eclipse.jdt.core.dom.BodyDeclaration bodyDeclaration)
|
Method Summary |
protected org.eclipse.jdt.core.dom.BodyDeclaration |
getASTBodyDeclaration()
|
String |
getComment()
Returns the comment associated with this member (including comment delimiters). |
int |
getFlags()
Returns the modifier flags for this node. |
void |
setComment(String comment)
Sets the comment associated with this member. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASTJMember
public ASTJMember(org.eclipse.jdt.core.dom.BodyDeclaration bodyDeclaration)
getASTBodyDeclaration
protected org.eclipse.jdt.core.dom.BodyDeclaration getASTBodyDeclaration()
getFlags
public int getFlags()
- Description copied from interface:
JNode
- Returns the modifier flags for this node. The flags can be examined using
class
FacadeFlags
.
- Specified by:
getFlags
in interface JNode
- Overrides:
getFlags
in class ASTJNode
getComment
public String getComment()
- Description copied from interface:
JMember
- Returns the comment associated with this member (including comment delimiters).
- Specified by:
getComment
in interface JMember
- Returns:
- the comment, or
null
if this member has no associated
comment
setComment
public void setComment(String comment)
- Description copied from interface:
JMember
- Sets the comment associated with this member. The comment will appear
before the member in the source. The comment must be properly formatted, including
delimiters. A
null
comment indicates no comment.
- Specified by:
setComment
in interface JMember
- Parameters:
comment
- the comment, including comment delimiters, or
null
indicating this member should have no associated comment