<s> package org . eclipse . jdt . core . dom ; public abstract class Comment extends ASTNode { private ASTNode alternateRoot = null ; Comment ( AST ast ) { super ( ast ) ; } public final boolean isBlockComment ( ) { return ( this instanceof BlockComment ) ; } public final boolean isLineComment ( ) { return ( this instanceof LineComment ) ; } public final boolean isDocComment ( ) { return ( this instanceof Javadoc ) ; } public final ASTNode getAlternateRoot ( ) { return this . alternateRoot ; } public final void setAlternateRoot ( ASTNode root ) { checkModifiable ( ) ; this . alternateRoot = root ; } int memSize ( ) { return BASE_NODE_SIZE + 1 * 4 ; } } </s>