<s> package org . eclipse . jdt . core . dom ; import java . util . ArrayList ; import java . util . List ; public class FieldAccess extends Expression { public static final ChildPropertyDescriptor EXPRESSION_PROPERTY = new ChildPropertyDescriptor ( FieldAccess . class , "expression" , Expression . class , MANDATORY , CYCLE_RISK ) ; public static final ChildPropertyDescriptor NAME_PROPERTY = new ChildPropertyDescriptor ( FieldAccess . class , "name" , SimpleName . class , MANDATORY , NO_CYCLE_RISK ) ; private static final List PROPERTY_DESCRIPTORS ; static { List properyList = new ArrayList ( 3 ) ; createPropertyList ( FieldAccess . class , properyList ) ; addProperty ( EXPRESSION_PROPERTY , properyList ) ; addProperty ( NAME_PROPERTY , properyList ) ; PROPERTY_DESCRIPTORS = reapPropertyList ( properyList ) ; } public static List propertyDescriptors ( int apiLevel ) { return PROPERTY_DESCRIPTORS ; } private Expression expression = null ; private SimpleName fieldName = null ; FieldAccess ( 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 == NAME_PROPERTY ) { if ( get ) { return getName ( ) ; } else { setName ( ( SimpleName ) child ) ; return null ; } } return super . internalGetSetChildProperty ( property , get , child ) ; } final int getNodeType0 ( ) { return FIELD_ACCESS ; } ASTNode clone0 ( AST target ) { FieldAccess result = new FieldAccess ( target ) ; result . setSourceRange ( getStartPosition ( ) , getLength ( ) ) ; result . setExpression ( ( Expression ) getExpression ( ) . clone ( target ) ) ; result . setName ( ( SimpleName ) getName ( ) . clone ( target ) ) ; 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 , getName ( ) ) ; } 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 SimpleName getName ( ) { if ( this . fieldName == null ) { synchronized ( this ) { if ( this . fieldName == null ) { preLazyInit ( ) ; this . fieldName = new SimpleName ( this . ast ) ; postLazyInit ( this . fieldName , NAME_PROPERTY ) ; } } } return this . fieldName ; } public void setName ( SimpleName fieldName ) { if ( fieldName == null ) { throw new IllegalArgumentException ( ) ; } ASTNode oldChild = this . fieldName ; preReplaceChild ( oldChild , fieldName , NAME_PROPERTY ) ; this . fieldName = fieldName ; postReplaceChild ( oldChild , fieldName , NAME_PROPERTY ) ; } int memSize ( ) { return BASE_NODE_SIZE + 2 * 4 ; } public IVariableBinding resolveFieldBinding ( ) { return this . ast . getBindingResolver ( ) . resolveField ( this ) ; } int treeSize ( ) { return memSize ( ) + ( this . expression == null ? 0 : getExpression ( ) . treeSize ( ) ) + ( this . fieldName == null ? 0 : getName ( ) . treeSize ( ) ) ; } } </s>