
eu.mihosoft.vmf.vmftext.grammar.SwitchForGrammarModel Maven / Gradle / Ivy
package eu.mihosoft.vmf.vmftext.grammar;
// vmf imports
// import eu.mihosoft.vmf.runtime.core.*;
// import eu.mihosoft.vmf.runtime.core.internal.*;
public interface SwitchForGrammarModel {
@SuppressWarnings("deprecation")
default T doSwitch(eu.mihosoft.vmf.runtime.core.VObject o) {
T result = null;
switch(((eu.mihosoft.vmf.runtime.core.internal.VObjectInternal)o)._vmf_getTypeId()) {
case 0:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseAlternative((Alternative) o);
return result == null?defaultValue(o):result;
case 2:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseAlternativeBase((AlternativeBase) o);
return result == null?defaultValue(o):result;
case 4:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseCodeElement((CodeElement) o);
return result == null?defaultValue(o):result;
case 6:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseCodeLocation((CodeLocation) o);
return result == null?defaultValue(o):result;
case 8:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseCodeRange((CodeRange) o);
return result == null?defaultValue(o):result;
case 10:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseCustomRule((CustomRule) o);
return result == null?defaultValue(o):result;
case 12:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseDelegationMethod((DelegationMethod) o);
return result == null?defaultValue(o):result;
case 14:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseGrammarModel((GrammarModel) o);
return result == null?defaultValue(o):result;
case 16:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseLabeledAlternative((LabeledAlternative) o);
return result == null?defaultValue(o):result;
case 18:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseLangElement((LangElement) o);
return result == null?defaultValue(o):result;
case 20:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseMapping((Mapping) o);
return result == null?defaultValue(o):result;
case 22:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseProperty((Property) o);
return result == null?defaultValue(o):result;
case 24:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = casePropertyAnnotation((PropertyAnnotation) o);
return result == null?defaultValue(o):result;
case 26:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseRuleAnnotation((RuleAnnotation) o);
return result == null?defaultValue(o):result;
case 28:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseRuleClass((RuleClass) o);
return result == null?defaultValue(o):result;
case 30:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseSubRule((SubRule) o);
return result == null?defaultValue(o):result;
case 32:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseType((Type) o);
return result == null?defaultValue(o):result;
case 34:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseTypeMapping((TypeMapping) o);
return result == null?defaultValue(o):result;
case 36:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseTypeMappings((TypeMappings) o);
return result == null?defaultValue(o):result;
case 38:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseUPElement((UPElement) o);
return result == null?defaultValue(o):result;
case 40:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseUPLexerRule((UPLexerRule) o);
return result == null?defaultValue(o):result;
case 42:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseUPNamedElement((UPNamedElement) o);
return result == null?defaultValue(o):result;
case 44:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseUPNamedSubRuleElement((UPNamedSubRuleElement) o);
return result == null?defaultValue(o):result;
case 46:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseUPRule((UPRule) o);
return result == null?defaultValue(o):result;
case 48:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseUPRuleBase((UPRuleBase) o);
return result == null?defaultValue(o):result;
case 50:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseUPSubRuleElement((UPSubRuleElement) o);
return result == null?defaultValue(o):result;
case 52:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseUnparserModel((UnparserModel) o);
return result == null?defaultValue(o):result;
case 54:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseWithId((WithId) o);
return result == null?defaultValue(o):result;
case 56:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseWithName((WithName) o);
return result == null?defaultValue(o):result;
case 58:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseWithText((WithText) o);
return result == null?defaultValue(o):result;
case 60:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseWithType((WithType) o);
return result == null?defaultValue(o):result;
default:
return defaultValue(o);
}
} // end doSwitch()
/**
* Default value that will be return if the matching case method returns {@code null}.
* @return default value
*/
default T defaultValue(eu.mihosoft.vmf.runtime.core.VObject o) {
return null;
}
default T caseAlternative(Alternative object) {return null;}
default T caseAlternativeBase(AlternativeBase object) {return null;}
default T caseCodeElement(CodeElement object) {return null;}
default T caseCodeLocation(CodeLocation object) {return null;}
default T caseCodeRange(CodeRange object) {return null;}
default T caseCustomRule(CustomRule object) {return null;}
default T caseDelegationMethod(DelegationMethod object) {return null;}
default T caseGrammarModel(GrammarModel object) {return null;}
default T caseLabeledAlternative(LabeledAlternative object) {return null;}
default T caseLangElement(LangElement object) {return null;}
default T caseMapping(Mapping object) {return null;}
default T caseProperty(Property object) {return null;}
default T casePropertyAnnotation(PropertyAnnotation object) {return null;}
default T caseRuleAnnotation(RuleAnnotation object) {return null;}
default T caseRuleClass(RuleClass object) {return null;}
default T caseSubRule(SubRule object) {return null;}
default T caseType(Type object) {return null;}
default T caseTypeMapping(TypeMapping object) {return null;}
default T caseTypeMappings(TypeMappings object) {return null;}
default T caseUPElement(UPElement object) {return null;}
default T caseUPLexerRule(UPLexerRule object) {return null;}
default T caseUPNamedElement(UPNamedElement object) {return null;}
default T caseUPNamedSubRuleElement(UPNamedSubRuleElement object) {return null;}
default T caseUPRule(UPRule object) {return null;}
default T caseUPRuleBase(UPRuleBase object) {return null;}
default T caseUPSubRuleElement(UPSubRuleElement object) {return null;}
default T caseUnparserModel(UnparserModel object) {return null;}
default T caseWithId(WithId object) {return null;}
default T caseWithName(WithName object) {return null;}
default T caseWithText(WithText object) {return null;}
default T caseWithType(WithType object) {return null;}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy