<s> package org . eclipse . jdt . core . dom ; import java . util . ArrayList ; import java . util . List ; public class AssertStatement extends Statement { public static final ChildPropertyDescriptor EXPRESSION_PROPERTY = new ChildPropertyDescriptor ( AssertStatement . class , "expression" , Expression . class , MANDATORY , CYCLE_RISK ) ; public static final ChildPropertyDescriptor MESSAGE_PROPERTY = new ChildPropertyDescriptor ( AssertStatement . class , "message" , Expression . class , OPTIONAL , CYCLE_RISK ) ; private static final List PROPERTY_DESCRIPTORS ; static { List properyList = new ArrayList ( 3 ) ; createPropertyList ( AssertStatement . class , properyList ) ; addProperty ( EXPRESSION_PROPERTY , properyList ) ; addProperty ( MESSAGE_PROPERTY , properyList ) ; PROPERTY_DESCRIPTORS = reapPropertyList ( properyList ) ; } public static List propertyDescriptors ( int apiLevel ) { return PROPERTY_DESCRIPTORS ; } private Expression expression = null ; private Expression optionalMessageExpression = null ; AssertStatement ( AST ast ) { super ( ast ) ; } final List internalStructuralPropertiesForType ( int apiLevel ) { return propertyDescriptors ( apiLevel ) ; } final ASTNode internalGetSetChildProperty ( ChildPropertyDescriptor property , boolean get , ASTNode child ) { if ( property == EXPRESSION_PROPERTY ) { if ( get ) { return getExpression ( ) ; } else { setExpression ( ( Expression ) child ) ; return null ; } } if ( property == MESSAGE_PROPERTY ) { if ( get ) { return getMessage ( ) ; } else { setMessage ( ( Expression ) child ) ; return null ; } } return super . internalGetSetChildProperty ( property , get , child ) ; } final int getNodeType0 ( ) { return ASSERT_STATEMENT ; } ASTNode clone0 ( AST target ) { AssertStatement result = new AssertStatement ( target ) ; result . setSourceRange ( getStartPosition ( ) , getLength ( ) ) ; result . copyLeadingComment ( this ) ; result . setExpression ( ( Expression ) ASTNode . copySubtree ( target , getExpression ( ) ) ) ; result . setMessage ( ( Expression ) ASTNode . copySubtree ( target , getMessage ( ) ) ) ; return result ; } final boolean subtreeMatch0 ( ASTMatcher matcher , Object other ) { return matcher . match ( this , other ) ; } void accept0 ( ASTVisitor visitor ) { boolean visitChildren = visitor . visit ( this ) ; if ( visitChildren ) { acceptChild ( visitor , getExpression ( ) ) ; acceptChild ( visitor , getMessage ( ) ) ; } visitor . endVisit ( this ) ; } public Expression getExpression ( ) { if ( this . expression == null ) { synchronized ( this ) { if ( this . expression == null ) { preLazyInit ( ) ; this . expression = new SimpleName ( this . ast ) ; postLazyInit ( this . expression , EXPRESSION_PROPERTY ) ; } } } return this . expression ; } public void setExpression ( Expression expression ) { if ( expression == null ) { throw new IllegalArgumentException ( ) ; } ASTNode oldChild = this . expression ; preReplaceChild ( oldChild , expression , EXPRESSION_PROPERTY ) ; this . expression = expression ; postReplaceChild ( oldChild , expression , EXPRESSION_PROPERTY ) ; } public Expression getMessage ( ) { return this . optionalMessageExpression ; } public void setMessage ( Expression expression ) { ASTNode oldChild = this . optionalMessageExpression ; preReplaceChild ( oldChild , expression , MESSAGE_PROPERTY ) ; this . optionalMessageExpression = expression ; postReplaceChild ( oldChild , expression , MESSAGE_PROPERTY ) ; } int memSize ( ) { return super . memSize ( ) + 2 * 4 ; } int treeSize ( ) { return memSize ( ) + ( this . expression == null ? 0 : getExpression ( ) . treeSize ( ) ) + ( this . optionalMessageExpression == null ? 0 : getMessage ( ) . treeSize ( ) ) ; } } </s>