1 26 27 package org.objectweb.openccm.ast.lib; 28 29 30 39 40 public abstract class DeclarationKindImpl 41 implements org.objectweb.openccm.ast.api.DeclarationKind 42 { 43 44 50 55 public static String 56 toString(long kind) 57 { 58 if( kind == dk_null ){ 59 return "null"; 60 }else if( kind == dk_module ){ 61 return "module"; 62 }else if( kind == dk_abstract_interface ){ 63 return "abstract_interface"; 64 }else if( kind == dk_local_interface ){ 65 return "local_interface"; 66 }else if( kind == dk_interface ){ 67 return "interface"; 68 }else if( kind == dk_alias ){ 69 return "alias"; 70 }else if( kind == dk_attribute ){ 71 return "attribute"; 72 }else if( kind == dk_constant ){ 73 return "constant"; 74 }else if( kind == dk_enum ){ 75 return "enum"; 76 }else if( kind == dk_exception ){ 77 return "exception"; 78 }else if( kind == dk_native ){ 79 return "native"; 80 }else if( kind == dk_operation ){ 81 return "operation"; 82 }else if( kind == dk_struct ){ 83 return "struct"; 84 }else if( kind == dk_union ){ 85 return "union"; 86 }else if( kind == dk_value_box ){ 87 return "value_box"; 88 }else if( kind == dk_value ){ 89 return "value"; 90 }else if( kind == dk_value_member ){ 91 return "value_member"; 92 }else if( kind == dk_component ){ 93 return "component"; 94 }else if( kind == dk_consumes ){ 95 return "consumes"; 96 }else if( kind == dk_emits ){ 97 return "emits"; 98 }else if( kind == dk_publishes ){ 99 return "publishes"; 100 }else if( kind == dk_provides ){ 101 return "provides"; 102 }else if( kind == dk_uses ){ 103 return "uses"; 104 }else if( kind == dk_home ){ 105 return "home"; 106 }else if( kind == dk_factory ){ 107 return "factory"; 108 }else if( kind == dk_finder ){ 109 return "finder"; 110 }else if( kind == dk_event ){ 111 return "event"; 112 }else if( kind == dk_repository ){ 113 return "repository"; 114 }else if( kind == dk_abstract_storage_home ){ 115 return "abstract_storage_home"; 116 }else if( kind == dk_abstract_storage_type ){ 117 return "abstract_storage_type"; 118 }else if( kind == dk_psdl_operation ){ 119 return "psdl_operation"; 120 }else if( kind == dk_storage_home ){ 121 return "storage_home"; 122 }else if( kind == dk_storage_home_factory ){ 123 return "storage_home_factory"; 124 }else if( kind == dk_storage_home_key ){ 125 return "storage_home_key"; 126 }else if( kind == dk_storage_type ){ 127 return "storage_type"; 128 }else if( kind == dk_storage_type_state_member ){ 129 return "storage_type_state_member"; 130 }else if( kind == dk_storage_type_store_directive ){ 131 return "storage_type_store_directive"; 132 }else if( kind == dk_composition ){ 133 return "composition"; 134 }else if( kind == dk_executor ){ 135 return "executor"; 136 }else if( kind == dk_home_executor ){ 137 return "home_executor"; 138 }else if( kind == dk_proxy_home ){ 139 return "proxy_home"; 140 }else if( kind == dk_segment ){ 141 return "segment"; 142 }else{ 143 return "null"; 144 } 145 } 146 } 147 | Popular Tags |