本文整理汇总了Java中jetbrains.mps.smodel.runtime.StructureAspectDescriptor类的典型用法代码示例。如果您正苦于以下问题:Java StructureAspectDescriptor类的具体用法?Java StructureAspectDescriptor怎么用?Java StructureAspectDescriptor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StructureAspectDescriptor类属于jetbrains.mps.smodel.runtime包,在下文中一共展示了StructureAspectDescriptor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new SubjectiefRecht.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new SubjectiefRecht.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new SubjectiefRecht.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == TextGenAspectDescriptor.class) {
return aspectClass.cast(new SubjectiefRecht.textGen.TextGenAspectDescriptor());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:26,代码来源:Language.java
示例2: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new Algemeen.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new Algemeen.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new Algemeen.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:23,代码来源:Language.java
示例3: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new Datum.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new Datum.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new Datum.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == TextGenAspectDescriptor.class) {
return aspectClass.cast(new Datum.textGen.TextGenAspectDescriptor());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:26,代码来源:Language.java
示例4: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new Integriteit.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new Integriteit.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new Integriteit.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:23,代码来源:Language.java
示例5: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToXML.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToXML.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToXML.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:vaclav,项目名称:voicemenu,代码行数:23,代码来源:Language.java
示例6: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToHTML.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToHTML.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToHTML.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:vaclav,项目名称:voicemenu,代码行数:23,代码来源:Language.java
示例7: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToHTML.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToHTML.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == MakeAspectDescriptor.class) {
return aspectClass.cast(new FacetAspectDescriptor());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToHTML.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:vaclav,项目名称:voicemenu,代码行数:26,代码来源:Language.java
示例8: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenu.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenu.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == IntentionAspectDescriptor.class) {
return aspectClass.cast(new IntentionsDescriptor());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenu.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:vaclav,项目名称:voicemenu,代码行数:26,代码来源:Language.java
示例9: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToJava.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToJava.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToJava.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:vaclav,项目名称:voicemenu,代码行数:23,代码来源:Language.java
示例10: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToAsterisk.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToAsterisk.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToAsterisk.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:vaclav,项目名称:voicemenu,代码行数:23,代码来源:Language.java
示例11: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.AsteriskLang.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.AsteriskLang.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.AsteriskLang.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == TextGenAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.AsteriskLang.textGen.TextGenAspectDescriptor());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:vaclav,项目名称:voicemenu,代码行数:26,代码来源:Language.java
示例12: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuTabularEditor.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuTabularEditor.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuTabularEditor.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:vaclav,项目名称:voicemenu,代码行数:23,代码来源:Language.java
示例13: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new CalculatorJS.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new CalculatorJS.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == MakeAspectDescriptor.class) {
return aspectClass.cast(new FacetAspectDescriptor());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new CalculatorJS.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:vaclav,项目名称:CalculatorJS,代码行数:26,代码来源:Language.java
示例14: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new org.campagnelab.refexample.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new org.campagnelab.refexample.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new org.campagnelab.refexample.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:CampagneLaboratory,项目名称:Editor2PDF,代码行数:23,代码来源:Language.java
示例15: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new org.campagnelab.mps.editor2pdf.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new org.campagnelab.mps.editor2pdf.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == IntentionAspectDescriptor.class) {
return aspectClass.cast(new IntentionsDescriptor());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new org.campagnelab.mps.editor2pdf.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:CampagneLaboratory,项目名称:Editor2PDF,代码行数:26,代码来源:Language.java
示例16: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == ActionAspectDescriptor.class) {
return aspectClass.cast(new ActionAspectDescriptorImpl());
}
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new ObjectiefRecht.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new ObjectiefRecht.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == IntentionAspectDescriptor.class) {
return aspectClass.cast(new IntentionsDescriptor());
}
if (aspectClass == MigrationAspectDescriptor.class) {
return aspectClass.cast(new MigrationDescriptor());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new ObjectiefRecht.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == TextGenAspectDescriptor.class) {
return aspectClass.cast(new ObjectiefRecht.textGen.TextGenAspectDescriptor());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:35,代码来源:Language.java
示例17: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new Interactie.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new Interactie.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == MigrationAspectDescriptor.class) {
return aspectClass.cast(new MigrationDescriptor());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new Interactie.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == TextGenAspectDescriptor.class) {
return aspectClass.cast(new Interactie.textGen.TextGenAspectDescriptor());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:29,代码来源:Language.java
示例18: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new Gegevens.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new Gegevens.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == IntentionAspectDescriptor.class) {
return aspectClass.cast(new IntentionsDescriptor());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new Gegevens.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == TextGenAspectDescriptor.class) {
return aspectClass.cast(new Gegevens.textGen.TextGenAspectDescriptor());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:29,代码来源:Language.java
示例19: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new Simulatie.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new Simulatie.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == IntentionAspectDescriptor.class) {
return aspectClass.cast(new IntentionsDescriptor());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new Simulatie.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == TextGenAspectDescriptor.class) {
return aspectClass.cast(new Simulatie.textGen.TextGenAspectDescriptor());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:diederikd,项目名称:DeBrug,代码行数:29,代码来源:Language.java
示例20: createAspect
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.Text.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.Text.constraints.ConstraintsAspectDescriptor());
}
if (aspectClass == EditorAspectDescriptor.class) {
return aspectClass.cast(new EditorAspectDescriptorImpl());
}
if (aspectClass == IntentionAspectDescriptor.class) {
return aspectClass.cast(new IntentionsDescriptor());
}
if (aspectClass == StructureAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.Text.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == TextGenAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.samples.Text.textGen.TextGenAspectDescriptor());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
开发者ID:vaclav,项目名称:voicemenu,代码行数:29,代码来源:Language.java
注:本文中的jetbrains.mps.smodel.runtime.StructureAspectDescriptor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论