eu.mihosoft.vmf.vmftext.grammar.ReadOnlySwitchForGrammarModel Maven / Gradle / Ivy
The newest version!
package eu.mihosoft.vmf.vmftext.grammar;
// vmf imports
// import eu.mihosoft.vmf.runtime.core.*;
// import eu.mihosoft.vmf.runtime.core.internal.*;
public interface ReadOnlySwitchForGrammarModel {
@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 1:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyAlternative((ReadOnlyAlternative) o);
return result == null?defaultValue(o):result;
case 3:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyAlternativeBase((ReadOnlyAlternativeBase) o);
return result == null?defaultValue(o):result;
case 5:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyCodeElement((ReadOnlyCodeElement) o);
return result == null?defaultValue(o):result;
case 7:
// 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 9:
// 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 11:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyCustomRule((ReadOnlyCustomRule) o);
return result == null?defaultValue(o):result;
case 13:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyDelegationMethod((ReadOnlyDelegationMethod) o);
return result == null?defaultValue(o):result;
case 15:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyGrammarModel((ReadOnlyGrammarModel) o);
return result == null?defaultValue(o):result;
case 17:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyLabeledAlternative((ReadOnlyLabeledAlternative) o);
return result == null?defaultValue(o):result;
case 19:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyLangElement((ReadOnlyLangElement) o);
return result == null?defaultValue(o):result;
case 21:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyMapping((ReadOnlyMapping) o);
return result == null?defaultValue(o):result;
case 23:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyProperty((ReadOnlyProperty) o);
return result == null?defaultValue(o):result;
case 25:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyPropertyAnnotation((ReadOnlyPropertyAnnotation) o);
return result == null?defaultValue(o):result;
case 27:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyRuleAnnotation((ReadOnlyRuleAnnotation) o);
return result == null?defaultValue(o):result;
case 29:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyRuleClass((ReadOnlyRuleClass) o);
return result == null?defaultValue(o):result;
case 31:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlySubRule((ReadOnlySubRule) o);
return result == null?defaultValue(o):result;
case 33:
// 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 35:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyTypeMapping((ReadOnlyTypeMapping) o);
return result == null?defaultValue(o):result;
case 37:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyTypeMappings((ReadOnlyTypeMappings) o);
return result == null?defaultValue(o):result;
case 39:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyUPElement((ReadOnlyUPElement) o);
return result == null?defaultValue(o):result;
case 41:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyUPLexerRule((ReadOnlyUPLexerRule) o);
return result == null?defaultValue(o):result;
case 43:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyUPNamedElement((ReadOnlyUPNamedElement) o);
return result == null?defaultValue(o):result;
case 45:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyUPNamedSubRuleElement((ReadOnlyUPNamedSubRuleElement) o);
return result == null?defaultValue(o):result;
case 47:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyUPRule((ReadOnlyUPRule) o);
return result == null?defaultValue(o):result;
case 49:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyUPRuleBase((ReadOnlyUPRuleBase) o);
return result == null?defaultValue(o):result;
case 51:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyUPSubRuleElement((ReadOnlyUPSubRuleElement) o);
return result == null?defaultValue(o):result;
case 53:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyUnparserModel((ReadOnlyUnparserModel) o);
return result == null?defaultValue(o):result;
case 55:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyWithId((ReadOnlyWithId) o);
return result == null?defaultValue(o):result;
case 57:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyWithName((ReadOnlyWithName) o);
return result == null?defaultValue(o):result;
case 59:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyWithText((ReadOnlyWithText) o);
return result == null?defaultValue(o):result;
case 61:
// TODO check whether we can prevent lazy initialized properties from
// being initialized just for iterating the object graph
result = caseReadOnlyWithType((ReadOnlyWithType) 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 caseReadOnlyAlternative(ReadOnlyAlternative object) {return null;}
default T caseReadOnlyAlternativeBase(ReadOnlyAlternativeBase object) {return null;}
default T caseReadOnlyCodeElement(ReadOnlyCodeElement object) {return null;}
default T caseCodeLocation(CodeLocation object) {return null;}
default T caseCodeRange(CodeRange object) {return null;}
default T caseReadOnlyCustomRule(ReadOnlyCustomRule object) {return null;}
default T caseReadOnlyDelegationMethod(ReadOnlyDelegationMethod object) {return null;}
default T caseReadOnlyGrammarModel(ReadOnlyGrammarModel object) {return null;}
default T caseReadOnlyLabeledAlternative(ReadOnlyLabeledAlternative object) {return null;}
default T caseReadOnlyLangElement(ReadOnlyLangElement object) {return null;}
default T caseReadOnlyMapping(ReadOnlyMapping object) {return null;}
default T caseReadOnlyProperty(ReadOnlyProperty object) {return null;}
default T caseReadOnlyPropertyAnnotation(ReadOnlyPropertyAnnotation object) {return null;}
default T caseReadOnlyRuleAnnotation(ReadOnlyRuleAnnotation object) {return null;}
default T caseReadOnlyRuleClass(ReadOnlyRuleClass object) {return null;}
default T caseReadOnlySubRule(ReadOnlySubRule object) {return null;}
default T caseType(Type object) {return null;}
default T caseReadOnlyTypeMapping(ReadOnlyTypeMapping object) {return null;}
default T caseReadOnlyTypeMappings(ReadOnlyTypeMappings object) {return null;}
default T caseReadOnlyUPElement(ReadOnlyUPElement object) {return null;}
default T caseReadOnlyUPLexerRule(ReadOnlyUPLexerRule object) {return null;}
default T caseReadOnlyUPNamedElement(ReadOnlyUPNamedElement object) {return null;}
default T caseReadOnlyUPNamedSubRuleElement(ReadOnlyUPNamedSubRuleElement object) {return null;}
default T caseReadOnlyUPRule(ReadOnlyUPRule object) {return null;}
default T caseReadOnlyUPRuleBase(ReadOnlyUPRuleBase object) {return null;}
default T caseReadOnlyUPSubRuleElement(ReadOnlyUPSubRuleElement object) {return null;}
default T caseReadOnlyUnparserModel(ReadOnlyUnparserModel object) {return null;}
default T caseReadOnlyWithId(ReadOnlyWithId object) {return null;}
default T caseReadOnlyWithName(ReadOnlyWithName object) {return null;}
default T caseReadOnlyWithText(ReadOnlyWithText object) {return null;}
default T caseReadOnlyWithType(ReadOnlyWithType object) {return null;}
}