ASTNode (int role) { LOG.assertTrue(ChildRole.isUnique(role)); switch(role){ default: return null; case ChildRole.MODIFIER_LIST: return findChildByType(JavaElementType.MODIFIER_LIST); case ChildRole.TYPE: return findChildByType(JavaElementType.TYPE); case ChildRole.NAME: return findChildByType(JavaTokenType.IDENTIFIER); case ChildRole.INITIALIZER_EQ: return findChildByType(JavaTokenType.EQ); case ChildRole.INITIALIZER: return findChildByType(ElementType.EXPRESSION_BIT_SET); case ChildRole.CLOSING_SEMICOLON: return TreeUtil.findChildBackward(this, JavaTokenType.SEMICOLON); } }