本文整理了Java中org.eclipse.uml2.uml.Operation.getRaisedExceptions()
方法的一些代码示例,展示了Operation.getRaisedExceptions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operation.getRaisedExceptions()
方法的具体详情如下:
包路径:org.eclipse.uml2.uml.Operation
类名称:Operation
方法名:getRaisedExceptions
暂无
代码示例来源:origin: crowdcode-de/KissMDA
@SuppressWarnings("unchecked")
private void generateMethodThrowException(AST ast, Operation operation,
MethodDeclaration md) {
EList<Type> raisedExceptions = operation.getRaisedExceptions();
for (Type raisedExceptionType : raisedExceptions) {
String umlExceptionQualifiedTypeName = raisedExceptionType
.getQualifiedName();
String name = jdtHelper.createFullQualifiedTypeAsString(ast,
umlExceptionQualifiedTypeName, sourceDirectoryPackageName);
Name typeName = ast.newName(name);
md.thrownExceptions().add(typeName);
}
}
代码示例来源:origin: org.andromda.bootstrap.metafacades/andromda-metafacades-emf-uml22
final Collection<Type> raisedExceptions = this.metaObject.getRaisedExceptions();
exceptions.addAll(this.shieldedElements(raisedExceptions));
代码示例来源:origin: org.andromda.metafacades/andromda-metafacades-emf-uml22
final Collection<Type> raisedExceptions = this.metaObject.getRaisedExceptions();
exceptions.addAll(this.shieldedElements(raisedExceptions));
代码示例来源:origin: crowdcode-de/KissMDA
when(operation.getName()).thenReturn("calculateMe");
when(operation.getType()).thenReturn(operationType);
when(operation.getRaisedExceptions()).thenReturn(raisedExceptions);
when(raisedExceptions.iterator()).thenReturn(iteratorException);
when(iteratorException.hasNext()).thenReturn(true, false);
代码示例来源:origin: org.eclipse.uml2/org.eclipse.uml2.uml
.getEGenericExceptions();
for (Type raisedException : operation.getRaisedExceptions()) {
EGenericType eGenericType = getEGenericType(raisedException);
代码示例来源:origin: org.eclipse.uml2/org.eclipse.uml2.uml
EList<Type> raisedExceptions = operation.getRaisedExceptions();
内容来源于网络,如有侵权,请联系作者删除!