<s> package org . eclipse . jdt . core . dom ; import java . util . ArrayList ; import java . util . List ; public class SimpleType extends Type { public static final ChildPropertyDescriptor NAME_PROPERTY = new ChildPropertyDescriptor ( SimpleType . class , "name" , Name . class , MANDATORY , NO_CYCLE_RISK ) ; private static final List PROPERTY_DESCRIPTORS ; static { List propertyList = new ArrayList ( 2 ) ; createPropertyList ( SimpleType . class , propertyList ) ; addProperty ( NAME_PROPERTY , propertyList ) ; PROPERTY_DESCRIPTORS = reapPropertyList ( propertyList ) ; } public static List propertyDescriptors ( int apiLevel ) { return PROPERTY_DESCRIPTORS ; } private Name typeName = null ; SimpleType ( AST ast ) { super ( ast ) ; } final List internalStructuralPropertiesForType ( int apiLevel ) { return propertyDescriptors ( apiLevel ) ; } final ASTNode internalGetSetChildProperty ( ChildPropertyDescriptor property , boolean get , ASTNode child ) { if ( property == NAME_PROPERTY ) { if ( get ) { return getName ( ) ; } else { setName ( ( Name ) child ) ; return null ; } } return super . internalGetSetChildProperty ( property , get , child ) ; } final int getNodeType0 ( ) { return SIMPLE_TYPE ; } ASTNode clone0 ( AST target ) { SimpleType result = new SimpleType ( target ) ; result . setSourceRange ( getStartPosition ( ) , getLength ( ) ) ; result . setName ( ( Name ) ( 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 , getName ( ) ) ; } visitor . endVisit ( this ) ; } public Name getName ( ) { if ( this . typeName == null ) { synchronized ( this ) { if ( this . typeName == null ) { preLazyInit ( ) ; this . typeName = new SimpleName ( this . ast ) ; postLazyInit ( this . typeName , NAME_PROPERTY ) ; } } } return this . typeName ; } public void setName ( Name typeName ) { if ( typeName == null ) { throw new IllegalArgumentException ( ) ; } ASTNode oldChild = this . typeName ; preReplaceChild ( oldChild , typeName , NAME_PROPERTY ) ; this . typeName = typeName ; postReplaceChild ( oldChild , typeName , NAME_PROPERTY ) ; } int memSize ( ) { return BASE_NODE_SIZE + 1 * 4 ; } int treeSize ( ) { return memSize ( ) + ( this . typeName == null ? 0 : getName ( ) . treeSize ( ) ) ; } } </s>