package jetbrains.mps.lang.structure.generator_new.baseLanguage;
/*Generated by MPS */
import jetbrains.mps.generator.runtime.Generated;
import jetbrains.mps.generator.impl.query.QueryProviderBase;
import jetbrains.mps.generator.template.CreateRootRuleContext;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SModuleOperations;
import jetbrains.mps.generator.template.BaseMappingRuleContext;
import jetbrains.mps.lang.structure.behavior.PrimitiveDataTypeDeclaration__BehaviorDescriptor;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOperations;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
import org.jetbrains.mps.openapi.model.SModel;
import jetbrains.mps.generator.template.PropertyMacroContext;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SPropertyOperations;
import jetbrains.mps.lang.structure.behavior.EnumerationMemberDeclaration__BehaviorDescriptor;
import jetbrains.mps.baseLanguage.util.IdentifierConstraintsUtil;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations;
import jetbrains.mps.util.NameUtil;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SModelOperations;
import org.jetbrains.mps.openapi.persistence.PersistenceFacade;
import jetbrains.mps.textgen.trace.TracingUtil;
import jetbrains.mps.lang.structure.generator_new.util.IdGenerationUtil;
import jetbrains.mps.smodel.adapter.ids.SConceptId;
import jetbrains.mps.smodel.adapter.ids.SLanguageId;
import jetbrains.mps.generator.template.ReferenceMacroContext;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.lang.structure.behavior.EnumerationDataTypeDeclaration__BehaviorDescriptor;
import jetbrains.mps.generator.template.IfMacroContext;
import jetbrains.mps.smodel.SNodePointer;
import jetbrains.mps.internal.collections.runtime.ListSequence;
import jetbrains.mps.internal.collections.runtime.IWhereFilter;
import jetbrains.mps.lang.core.behavior.IDeprecatable__BehaviorDescriptor;
import jetbrains.mps.generator.template.SourceSubstituteMacroNodeContext;
import jetbrains.mps.generator.template.TemplateArgumentContext;
import jetbrains.mps.smodel.adapter.ids.MetaIdByDeclaration;
import jetbrains.mps.generator.template.SourceSubstituteMacroNodesContext;
import jetbrains.mps.internal.collections.runtime.Sequence;
import java.util.Collections;
import jetbrains.mps.generator.template.MapSrcMacroContext;
import jetbrains.mps.generator.template.MappingScriptContext;
import org.jetbrains.mps.openapi.module.SModule;
import jetbrains.mps.smodel.Language;
import java.util.UUID;
import jetbrains.mps.project.ModuleId;
import jetbrains.mps.internal.collections.runtime.IVisitor;
import jetbrains.mps.smodel.presentation.SmartAliasHelper;
import jetbrains.mps.generator.template.TemplateVarContext;
import jetbrains.mps.internal.collections.runtime.ISelector;
import jetbrains.mps.lang.structure.behavior.AbstractConceptDeclaration__BehaviorDescriptor;
import org.jetbrains.mps.openapi.model.SNodeReference;
import java.util.Map;
import jetbrains.mps.generator.impl.query.ReductionRuleCondition;
import java.util.HashMap;
import org.jetbrains.annotations.NotNull;
import jetbrains.mps.generator.impl.query.QueryKey;
import jetbrains.mps.generator.template.ReductionRuleQueryContext;
import jetbrains.mps.generator.impl.GenerationFailureException;
import jetbrains.mps.generator.impl.query.CreateRootCondition;
import jetbrains.mps.generator.impl.query.ScriptCodeBlock;
import jetbrains.mps.generator.impl.query.SourceNodeQuery;
import jetbrains.mps.generator.impl.query.QueryKeyImpl;
import org.jetbrains.annotations.Nullable;
import jetbrains.mps.generator.impl.query.SourceNodesQuery;
import java.util.Collection;
import jetbrains.mps.util.IterableUtil;
import jetbrains.mps.generator.impl.query.PropertyValueQuery;
import org.jetbrains.mps.openapi.language.SProperty;
import jetbrains.mps.generator.impl.query.IfMacroCondition;
import jetbrains.mps.generator.impl.query.ReferenceTargetQuery;
import jetbrains.mps.generator.impl.query.VariableValueQuery;
import jetbrains.mps.generator.impl.query.CallArgumentQuery;
import jetbrains.mps.generator.impl.query.MapNodeQuery;
@Generated
public class QueriesGenerated extends QueryProviderBase {
public QueriesGenerated() {
super(1);
}
public static boolean createRootRule_Condition_3125857749401203974(final CreateRootRuleContext _context) {
// see MPS-24613
return SModuleOperations.isAspect(_context.getOriginalInputModel(), "structure");
}
public static boolean createRootRule_Condition_2913371883554406285(final CreateRootRuleContext _context) {
// see MPS-24613
return SModuleOperations.isAspect(_context.getOriginalInputModel(), "structure");
}
public static boolean createRootRule_Condition_8071309295074026876(final CreateRootRuleContext _context) {
return SModuleOperations.isAspect(_context.getOriginalInputModel(), "structure");
}
public static boolean baseMappingRule_Condition_5934105035579768113(final BaseMappingRuleContext _context) {
return (boolean) PrimitiveDataTypeDeclaration__BehaviorDescriptor.isString_idhKtFRO6.invoke(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc26875dfbL, 0xfc3210ef05L, "memberDataType")));
}
public static boolean baseMappingRule_Condition_5934105035579769162(final BaseMappingRuleContext _context) {
return (boolean) PrimitiveDataTypeDeclaration__BehaviorDescriptor.isBoolean_idhKtG1tp.invoke(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc26875dfbL, 0xfc3210ef05L, "memberDataType")));
}
public static boolean baseMappingRule_Condition_5934105035579769278(final BaseMappingRuleContext _context) {
return (boolean) PrimitiveDataTypeDeclaration__BehaviorDescriptor.isInteger_idhKtFYCF.invoke(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc26875dfbL, 0xfc3210ef05L, "memberDataType")));
}
public static boolean baseMappingRule_Condition_1570228009929814973(final BaseMappingRuleContext _context) {
// see MPS-24613
return SModuleOperations.isAspect(((SModel) _context.getVariable("model")), "structure");
}
public static Object propertyMacro_GetPropertyValue_1174698175154(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc321331b2L, 0xfc5ee06664L, "externalValue"));
}
public static Object propertyMacro_GetPropertyValue_1174698110415(final PropertyMacroContext _context) {
String identifier = EnumerationMemberDeclaration__BehaviorDescriptor.getConstantName_idi2Z$rBf.invoke(_context.getNode());
if (IdentifierConstraintsUtil.isJavaReserved(identifier)) {
return _context.createUniqueName(identifier, SNodeOperations.getParent(_context.getNode()));
} else {
return identifier;
}
}
public static Object propertyMacro_GetPropertyValue_1174698054118(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_1219108817229(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) + "_PropertySupport";
}
public static Object propertyMacro_GetPropertyValue_1212087871489(final PropertyMacroContext _context) {
if (SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc26875dfbL, 0x11a360ab6a6L, "noValueText")) != null) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc26875dfbL, 0x11a360ab6a6L, "noValueText"));
}
return "";
}
public static Object propertyMacro_GetPropertyValue_1174696429121(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) + "_PropertySupport";
}
public static Object propertyMacro_GetPropertyValue_1174697681347(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc268c7a37L, 0xfc2bc4ff02L, "constraint"));
}
public static Object propertyMacro_GetPropertyValue_2318347719271989663(final PropertyMacroContext _context) {
return "myConcept" + SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_4267113346160916615(final PropertyMacroContext _context) {
// FIXME implicit assumption name of the language matches model name minus last segment
return NameUtil.namespaceFromLongName(SModelOperations.getModelName(SNodeOperations.getModel(_context.getNode())));
}
public static Object propertyMacro_GetPropertyValue_4267113346160896484(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_4927458743547465294(final PropertyMacroContext _context) {
if (SNodeOperations.isInstanceOf(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration")) && (SLinkOperations.getTarget(SNodeOperations.cast(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration")), MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, 0xf979be93cfL, "extends")) != null) && SPropertyOperations.getBoolean(SLinkOperations.getTarget(SNodeOperations.cast(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration")), MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, 0xf979be93cfL, "extends")), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x403a32c5772c7ec7L, "final"))) {
_context.showErrorMessage(_context.getNode(), "Can't extend final concept");
}
return SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x403a32c5772c7ec7L, "final"));
}
public static Object propertyMacro_GetPropertyValue_4927458743547477982(final PropertyMacroContext _context) {
return SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x403a32c5772c7ec2L, "abstract"));
}
public static Object propertyMacro_GetPropertyValue_4927458743547485436(final PropertyMacroContext _context) {
return SPropertyOperations.getBoolean(SNodeOperations.as(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration")), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, 0xff49c1d648L, "rootable"));
}
public static Object propertyMacro_GetPropertyValue_4267113346162334602(final PropertyMacroContext _context) {
return NameUtil.nodeFQName(SLinkOperations.getTarget(SNodeOperations.as(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration")), MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, 0xf979be93cfL, "extends")));
}
public static Object propertyMacro_GetPropertyValue_4927458743549784292(final PropertyMacroContext _context) {
return PersistenceFacade.getInstance().asString(TracingUtil.getInput(_context.getNode()));
}
public static Object propertyMacro_GetPropertyValue_4927458743547865620(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_4927458743547951844(final PropertyMacroContext _context) {
return "0x" + Long.toHexString(IdGenerationUtil.getPropertyId(_context, _context.getNode())) + 'L';
}
public static Object propertyMacro_GetPropertyValue_4927458743550489263(final PropertyMacroContext _context) {
return TracingUtil.getInput(_context.getNode()).getNodeId().toString();
}
public static Object propertyMacro_GetPropertyValue_4927458743551196113(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_4927458743551196121(final PropertyMacroContext _context) {
return "0x" + Long.toHexString(IdGenerationUtil.getLinkId(_context, _context.getNode())) + 'L';
}
public static Object propertyMacro_GetPropertyValue_4927458743554402598(final PropertyMacroContext _context) {
return SPropertyOperations.hasValue(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf98054bb04L, "sourceCardinality"), "0..1", "0..1");
}
public static Object propertyMacro_GetPropertyValue_7538749174841931266(final PropertyMacroContext _context) {
return TracingUtil.getInput(_context.getNode()).getNodeId().toString();
}
public static Object propertyMacro_GetPropertyValue_4927458743551302854(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_4927458743551302862(final PropertyMacroContext _context) {
return "0x" + Long.toHexString(IdGenerationUtil.getLinkId(_context, _context.getNode())) + 'L';
}
public static Object propertyMacro_GetPropertyValue_4927458743555722047(final PropertyMacroContext _context) {
return SPropertyOperations.hasValue(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf98054bb04L, "sourceCardinality"), "0..1", "0..1") || SPropertyOperations.hasValue(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf98054bb04L, "sourceCardinality"), "0..n", "0..1");
}
public static Object propertyMacro_GetPropertyValue_4927458743555780386(final PropertyMacroContext _context) {
return !(SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0x213ed46fe94fc232L, "unordered")));
}
public static Object propertyMacro_GetPropertyValue_4927458743555821203(final PropertyMacroContext _context) {
return SPropertyOperations.hasValue(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf98054bb04L, "sourceCardinality"), "0..n", "0..1") || SPropertyOperations.hasValue(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf98054bb04L, "sourceCardinality"), "1..n", "0..1");
}
public static Object propertyMacro_GetPropertyValue_7538749174842090042(final PropertyMacroContext _context) {
return TracingUtil.getInput(_context.getNode()).getNodeId().toString();
}
public static Object propertyMacro_GetPropertyValue_4927458743551741377(final PropertyMacroContext _context) {
return NameUtil.escapeString(SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x46ab0ad5826c74caL, "conceptAlias")));
}
public static Object propertyMacro_GetPropertyValue_540685334803911283(final PropertyMacroContext _context) {
return "createDescriptorFor" + SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_1444496069593705180(final PropertyMacroContext _context) {
return "props_" + SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_6565560734627068394(final PropertyMacroContext _context) {
return "0x" + Long.toHexString(IdGenerationUtil.getPropertyId(_context, _context.getNode())) + 'L';
}
public static Object propertyMacro_GetPropertyValue_6565560734627068407(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_6565560734627105853(final PropertyMacroContext _context) {
return "0x" + Long.toHexString(IdGenerationUtil.getLinkId(_context, _context.getNode())) + 'L';
}
public static Object propertyMacro_GetPropertyValue_6565560734627105866(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_6565560734627144995(final PropertyMacroContext _context) {
return "0x" + Long.toHexString(IdGenerationUtil.getLinkId(_context, _context.getNode())) + 'L';
}
public static Object propertyMacro_GetPropertyValue_6565560734627145008(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_6565560734627287293(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x403a32c5772bbe20L, "conceptShortDescription"));
}
public static Object propertyMacro_GetPropertyValue_6565560734627505137(final PropertyMacroContext _context) {
return NameUtil.escapeString(SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x2237c3bc85b3755cL, "helpURL")));
}
public static Object propertyMacro_GetPropertyValue_4267113346160386983(final PropertyMacroContext _context) {
return "0x" + Long.toHexString(((SConceptId) _context.getVariable("cid")).getLanguageId().getHighBits()) + 'L';
}
public static Object propertyMacro_GetPropertyValue_4267113346160439227(final PropertyMacroContext _context) {
return "0x" + Long.toHexString(((SConceptId) _context.getVariable("cid")).getLanguageId().getLowBits()) + 'L';
}
public static Object propertyMacro_GetPropertyValue_4267113346160443044(final PropertyMacroContext _context) {
return "0x" + Long.toHexString(((SConceptId) _context.getVariable("cid")).getIdValue()) + 'L';
}
public static Object propertyMacro_GetPropertyValue_2106591422590157356(final PropertyMacroContext _context) {
return ((Integer) _context.getVariable("cv:c"));
}
public static Object propertyMacro_GetPropertyValue_2106591422590167043(final PropertyMacroContext _context) {
// Likely, we shall mangle the name to avoid non-Java characters, however,
// both StructureAspectDescriptor and PresentationAspect use concept name for Java fields, that's why I follow
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_8071309295074797322(final PropertyMacroContext _context) {
return "0x" + Long.toHexString(((SLanguageId) _context.getVariable("var:langId")).getHighBits()) + 'L';
}
public static Object propertyMacro_GetPropertyValue_8071309295074800628(final PropertyMacroContext _context) {
return "0x" + Long.toHexString(((SLanguageId) _context.getVariable("var:langId")).getLowBits()) + 'L';
}
public static Object propertyMacro_GetPropertyValue_8071309295073760609(final PropertyMacroContext _context) {
return "0x" + Long.toHexString(IdGenerationUtil.getConceptId(_context, _context.getNode())) + 'L';
}
public static Object referenceMacro_GetReferent_1197509802062(final ReferenceMacroContext _context) {
SNode defaultMember = EnumerationDataTypeDeclaration__BehaviorDescriptor.getDefaultMember_idhEwIM$p.invoke(_context.getNode());
SNode outputEnumConstant = _context.getOutputNodeByInputNodeAndMappingLabel(defaultMember, "outputEnumConstant");
return SNodeOperations.cast(outputEnumConstant, MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfc367388b3L, "jetbrains.mps.baseLanguage.structure.EnumConstantDeclaration"));
}
public static Object referenceMacro_GetReferent_4927458743552101934(final ReferenceMacroContext _context) {
return ((String) _context.getVariable("var:kind"));
}
public static Object referenceMacro_GetReferent_4927458743552102972(final ReferenceMacroContext _context) {
SNode cd = SNodeOperations.as(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration"));
if (SPropertyOperations.hasValue(cd, MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, 0x4b014033eedc8a48L, "staticScope"), null, null)) {
return "GLOBAL";
}
return (SPropertyOperations.hasValue(cd, MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, 0x4b014033eedc8a48L, "staticScope"), "none", null) ? "NONE" : "ROOT");
}
public static Object referenceMacro_GetReferent_4147950839246952264(final ReferenceMacroContext _context) {
return SModelOperations.getModelName(((SModel) _context.getVariable("model"))) + ".StructureAspectDescriptor";
}
public static Object referenceMacro_GetReferent_4147950839246989517(final ReferenceMacroContext _context) {
return SModelOperations.getModelName(((SModel) _context.getVariable("model"))) + ".ConceptPresentationAspectImpl";
}
public static boolean ifMacro_Condition_1212083662247(final IfMacroContext _context) {
return !(SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc26875dfbL, 0x11a35a5efdaL, "hasNoDefaultMember")));
}
public static boolean ifMacro_Condition_1212084337843(final IfMacroContext _context) {
return SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc26875dfbL, 0x11a35a5efdaL, "hasNoDefaultMember"));
}
public static boolean ifMacro_Condition_4927458743547296537(final IfMacroContext _context) {
return SNodeOperations.isInstanceOf(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration"));
}
public static boolean ifMacro_Condition_4927458743547332005(final IfMacroContext _context) {
return SNodeOperations.isInstanceOf(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103556dcafL, "jetbrains.mps.lang.structure.structure.InterfaceConceptDeclaration"));
}
public static boolean ifMacro_Condition_4267113346161045510(final IfMacroContext _context) {
if (SNodeOperations.isInstanceOf(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration"))) {
SNode superConcept = SLinkOperations.getTarget(SNodeOperations.as(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration")), MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, 0xf979be93cfL, "extends"));
return (superConcept != null) && !(new SNodePointer("r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)", "1133920641626").equals(SNodeOperations.getPointer(superConcept)));
}
return false;
}
public static boolean ifMacro_Condition_4927458743549707776(final IfMacroContext _context) {
// source node not specified or points to the same model, and we know trace to original
return (SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x45b8a887cfd27b2cL, "sourceNode")) == null || SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x45b8a887cfd27b2cL, "sourceNode")) == _context.getNode()) && TracingUtil.getInput(_context.getNode()) != null;
}
public static boolean ifMacro_Condition_4927458743550484650(final IfMacroContext _context) {
// inspired by respective code from incl_Prop. We don't have sourceNode reference in PropertyDeclaration, hence need to look at the owner
SNode acd = SNodeOperations.as(SNodeOperations.getParent(_context.getNode()), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, "jetbrains.mps.lang.structure.structure.AbstractConceptDeclaration"));
return (SLinkOperations.getTarget(acd, MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x45b8a887cfd27b2cL, "sourceNode")) == null || SLinkOperations.getTarget(acd, MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x45b8a887cfd27b2cL, "sourceNode")) == acd) && TracingUtil.getInput(_context.getNode()) != null;
}
public static boolean ifMacro_Condition_7538749174841931236(final IfMacroContext _context) {
// inspired by respective code from incl_Prop. We don't have sourceNode reference in PropertyDeclaration, hence need to look at the owner
SNode acd = SNodeOperations.as(SNodeOperations.getParent(_context.getNode()), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, "jetbrains.mps.lang.structure.structure.AbstractConceptDeclaration"));
return (SLinkOperations.getTarget(acd, MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x45b8a887cfd27b2cL, "sourceNode")) == null || SLinkOperations.getTarget(acd, MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x45b8a887cfd27b2cL, "sourceNode")) == acd) && TracingUtil.getInput(_context.getNode()) != null;
}
public static boolean ifMacro_Condition_7538749174842090010(final IfMacroContext _context) {
// inspired by respective code from incl_Prop. We don't have sourceNode reference in PropertyDeclaration, hence need to look at the owner
SNode acd = SNodeOperations.as(SNodeOperations.getParent(_context.getNode()), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, "jetbrains.mps.lang.structure.structure.AbstractConceptDeclaration"));
return (SLinkOperations.getTarget(acd, MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x45b8a887cfd27b2cL, "sourceNode")) == null || SLinkOperations.getTarget(acd, MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x45b8a887cfd27b2cL, "sourceNode")) == acd) && TracingUtil.getInput(_context.getNode()) != null;
}
public static boolean ifMacro_Condition_4927458743552063166(final IfMacroContext _context) {
return SNodeOperations.isInstanceOf(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration"));
}
public static boolean ifMacro_Condition_2181124456585885818(final IfMacroContext _context) {
return !("NORMAL".equals(((String) _context.getVariable("var:kind")))) || !(SPropertyOperations.hasValue(SNodeOperations.as(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration")), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, 0x4b014033eedc8a48L, "staticScope"), null, null));
}
public static boolean ifMacro_Condition_4927458743551656364(final IfMacroContext _context) {
return isNotEmptyString(SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x46ab0ad5826c74caL, "conceptAlias")));
}
public static boolean ifMacro_Condition_6565560734626917179(final IfMacroContext _context) {
return ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0xf979c3ba6cL, "propertyDeclaration"))).any(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return (boolean) IDeprecatable__BehaviorDescriptor.isDeprecated_idhOwoPtR.invoke(it);
}
}) || ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0xf979c3ba6bL, "linkDeclaration"))).any(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return (boolean) IDeprecatable__BehaviorDescriptor.isDeprecated_idhOwoPtR.invoke(it);
}
});
}
public static boolean ifMacro_Condition_6565560734626985326(final IfMacroContext _context) {
return (boolean) IDeprecatable__BehaviorDescriptor.isDeprecated_idhOwoPtR.invoke(_context.getNode());
}
public static boolean ifMacro_Condition_6565560734627275551(final IfMacroContext _context) {
return isNotEmptyString(SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x403a32c5772bbe20L, "conceptShortDescription")));
}
public static boolean ifMacro_Condition_6565560734627370612(final IfMacroContext _context) {
return isNotEmptyString(SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x2237c3bc85b3755cL, "helpURL")));
}
public static boolean ifMacro_Condition_6565560734627387385(final IfMacroContext _context) {
return (SLinkOperations.getTarget(SNodeOperations.as(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration")), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, 0x57cf4eb14c4f9ef5L, "icon")) != null);
}
public static SNode sourceNodeQuery_6565560734627549315(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(SNodeOperations.cast(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration")), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, 0x57cf4eb14c4f9ef5L, "icon"));
}
public static Object templateArgumentQuery_4267113346160571066(final TemplateArgumentContext _context) {
return MetaIdByDeclaration.getConceptId(_context.getNode());
}
public static Object templateArgumentQuery_4267113346162354796(final TemplateArgumentContext _context) {
return MetaIdByDeclaration.getConceptId(SLinkOperations.getTarget(SNodeOperations.as(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration")), MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, 0xf979be93cfL, "extends")));
}
public static Object templateArgumentQuery_4267113346163213778(final TemplateArgumentContext _context) {
return MetaIdByDeclaration.getConceptId(_context.getNode());
}
public static Object templateArgumentQuery_4927458743554510186(final TemplateArgumentContext _context) {
return MetaIdByDeclaration.getConceptId(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf98055fef0L, "target")));
}
public static Object templateArgumentQuery_4927458743554610988(final TemplateArgumentContext _context) {
return MetaIdByDeclaration.getConceptId(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf98055fef0L, "target")));
}
public static Object templateArgumentQuery_6565560734626917210(final TemplateArgumentContext _context) {
return MetaIdByDeclaration.getConceptId(_context.getNode());
}
public static Iterable<SNode> sourceNodesQuery_1174698255353(final SourceSubstituteMacroNodesContext _context) {
return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc26875dfbL, 0xfc32151efeL, "member"));
}
public static Iterable<SNode> sourceNodesQuery_1174700250815(final SourceSubstituteMacroNodesContext _context) {
return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc26875dfbL, 0xfc32151efeL, "member"));
}
public static Iterable<SNode> sourceNodesQuery_1174700303502(final SourceSubstituteMacroNodesContext _context) {
return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc26875dfbL, 0xfc32151efeL, "member"));
}
public static Iterable<SNode> sourceNodesQuery_2318347719271987308(final SourceSubstituteMacroNodesContext _context) {
return ((Iterable<SNode>) _context.getVariable("var:concepts"));
}
public static Iterable<SNode> sourceNodesQuery_8768039269252246206(final SourceSubstituteMacroNodesContext _context) {
return ((Iterable<SNode>) _context.getVariable("var:concepts"));
}
public static Iterable<SNode> sourceNodesQuery_4630900134062580139(final SourceSubstituteMacroNodesContext _context) {
return ((Iterable<SNode>) _context.getVariable("var:concepts"));
}
public static Iterable<SNode> sourceNodesQuery_4267113346162549690(final SourceSubstituteMacroNodesContext _context) {
if (SNodeOperations.isInstanceOf(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration"))) {
return SLinkOperations.collect(SLinkOperations.getChildren(SNodeOperations.as(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration")), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, 0x110358d693eL, "implements")), MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x110356fc618L, 0x110356fe029L, "intfc"));
} else if (SNodeOperations.isInstanceOf(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103556dcafL, "jetbrains.mps.lang.structure.structure.InterfaceConceptDeclaration"))) {
return SLinkOperations.collect(SLinkOperations.getChildren(SNodeOperations.as(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103556dcafL, "jetbrains.mps.lang.structure.structure.InterfaceConceptDeclaration")), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103556dcafL, 0x110356e9df4L, "extends")), MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x110356fc618L, 0x110356fe029L, "intfc"));
}
return Sequence.fromIterable(Collections.<SNode>emptyList());
}
public static Iterable<SNode> sourceNodesQuery_4927458743547626543(final SourceSubstituteMacroNodesContext _context) {
return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0xf979c3ba6cL, "propertyDeclaration"));
}
public static Iterable<SNode> sourceNodesQuery_4927458743550869321(final SourceSubstituteMacroNodesContext _context) {
return ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0xf979c3ba6bL, "linkDeclaration"))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SPropertyOperations.hasValue(it, MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf980556927L, "metaClass"), "reference", "reference") && (SLinkOperations.getTarget(it, MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf98051c244L, "specializedLink")) == null);
}
});
}
public static Iterable<SNode> sourceNodesQuery_4927458743551107530(final SourceSubstituteMacroNodesContext _context) {
return ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0xf979c3ba6bL, "linkDeclaration"))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SPropertyOperations.hasValue(it, MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf980556927L, "metaClass"), "aggregation", "reference") && (SLinkOperations.getTarget(it, MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf98051c244L, "specializedLink")) == null);
}
});
}
public static Iterable<SNode> sourceNodesQuery_540685334803788484(final SourceSubstituteMacroNodesContext _context) {
return ((Iterable<SNode>) _context.getVariable("var:concepts"));
}
public static Iterable<SNode> sourceNodesQuery_1444496069593705158(final SourceSubstituteMacroNodesContext _context) {
return ((Iterable<SNode>) _context.getVariable("var:concepts"));
}
public static Iterable<SNode> sourceNodesQuery_6565560734627015094(final SourceSubstituteMacroNodesContext _context) {
return ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0xf979c3ba6cL, "propertyDeclaration"))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return (boolean) IDeprecatable__BehaviorDescriptor.isDeprecated_idhOwoPtR.invoke(it);
}
});
}
public static Iterable<SNode> sourceNodesQuery_6565560734627015770(final SourceSubstituteMacroNodesContext _context) {
return ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0xf979c3ba6bL, "linkDeclaration"))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return (boolean) IDeprecatable__BehaviorDescriptor.isDeprecated_idhOwoPtR.invoke(it) && SPropertyOperations.hasValue(it, MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf980556927L, "metaClass"), "reference", "reference") && (SLinkOperations.getTarget(it, MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf98051c244L, "specializedLink")) == null);
}
});
}
public static Iterable<SNode> sourceNodesQuery_6565560734627067786(final SourceSubstituteMacroNodesContext _context) {
return ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0xf979c3ba6bL, "linkDeclaration"))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return (boolean) IDeprecatable__BehaviorDescriptor.isDeprecated_idhOwoPtR.invoke(it) && SPropertyOperations.hasValue(it, MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf980556927L, "metaClass"), "aggregation", "reference");
}
});
}
public static Iterable<SNode> sourceNodesQuery_2913371883555101131(final SourceSubstituteMacroNodesContext _context) {
return ((Iterable<SNode>) _context.getVariable("var:concepts"));
}
public static Iterable<SNode> sourceNodesQuery_2106591422590153819(final SourceSubstituteMacroNodesContext _context) {
return ((Iterable<SNode>) _context.getVariable("var:concepts"));
}
public static Iterable<SNode> sourceNodesQuery_2106591422590220354(final SourceSubstituteMacroNodesContext _context) {
return ((Iterable<SNode>) _context.getVariable("var:concepts"));
}
public static SNode mapSrcMacro_mapper_1178978044712(final MapSrcMacroContext _context) {
SNode enumDataType = SNodeOperations.cast(SNodeOperations.getParent(_context.getNode()), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc26875dfbL, "jetbrains.mps.lang.structure.structure.EnumerationDataTypeDeclaration"));
String internalValue = SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc321331b2L, 0xfc5ee06663L, "internalValue"));
SNode memberDataType = SLinkOperations.getTarget(enumDataType, MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xfc26875dfbL, 0xfc3210ef05L, "memberDataType"));
SNode targetInternalValueExpression = null;
SModel targetModel = _context.getOutputModel();
if (SPropertyOperations.hasValue(memberDataType, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "string")) {
if (internalValue == null) {
targetInternalValueExpression = SModelOperations.createNewNode(targetModel, null, MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf940cd6167L, "jetbrains.mps.baseLanguage.structure.NullLiteral"));
} else {
targetInternalValueExpression = SModelOperations.createNewNode(targetModel, null, MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, "jetbrains.mps.baseLanguage.structure.StringLiteral"));
SPropertyOperations.set(SNodeOperations.cast(targetInternalValueExpression, MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, "jetbrains.mps.baseLanguage.structure.StringLiteral")), MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), internalValue);
}
} else
if (SPropertyOperations.hasValue(memberDataType, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "boolean")) {
targetInternalValueExpression = SModelOperations.createNewNode(targetModel, null, MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, "jetbrains.mps.baseLanguage.structure.BooleanConstant"));
if (internalValue == null) {
SPropertyOperations.set(SNodeOperations.cast(targetInternalValueExpression, MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, "jetbrains.mps.baseLanguage.structure.BooleanConstant")), MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), "" + (true));
} else {
SPropertyOperations.set(SNodeOperations.cast(targetInternalValueExpression, MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, "jetbrains.mps.baseLanguage.structure.BooleanConstant")), MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), "" + (Boolean.parseBoolean(internalValue)));
}
} else
if (SPropertyOperations.hasValue(memberDataType, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "integer")) {
targetInternalValueExpression = SModelOperations.createNewNode(targetModel, null, MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc59b314L, "jetbrains.mps.baseLanguage.structure.IntegerConstant"));
if (internalValue == null) {
SPropertyOperations.set(SNodeOperations.cast(targetInternalValueExpression, MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc59b314L, "jetbrains.mps.baseLanguage.structure.IntegerConstant")), MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc59b314L, 0xf8cc59b315L, "value"), "" + (0));
} else {
if (internalValue.startsWith("0x")) {
SPropertyOperations.set(SNodeOperations.cast(targetInternalValueExpression, MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc59b314L, "jetbrains.mps.baseLanguage.structure.IntegerConstant")), MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc59b314L, 0xf8cc59b315L, "value"), "" + (Integer.parseInt(internalValue.substring(2), 16)));
} else {
SPropertyOperations.set(SNodeOperations.cast(targetInternalValueExpression, MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc59b314L, "jetbrains.mps.baseLanguage.structure.IntegerConstant")), MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc59b314L, 0xf8cc59b315L, "value"), "" + (Integer.parseInt(internalValue)));
}
}
}
if ((targetInternalValueExpression == null)) {
_context.showErrorMessage(enumDataType, "Can't generate value for type " + SPropertyOperations.getString(memberDataType, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")));
}
return targetInternalValueExpression;
}
public static void mappingScript_CodeBlock_9005308665740198088(final MappingScriptContext _context) {
SModule module = _context.getOriginalInputModel().getModule();
if (module instanceof Language) {
final UUID moduleId = ((ModuleId.Regular) module.getModuleId()).getUUID();
ListSequence.fromList(SModelOperations.roots(_context.getModel(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, "jetbrains.mps.lang.structure.structure.AbstractConceptDeclaration"))).visitAll(new IVisitor<SNode>() {
public void visit(SNode it) {
if (isEmptyString(SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x7cf94884f2237423L, "languageId")))) {
SPropertyOperations.set(it, MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x7cf94884f2237423L, "languageId"), moduleId.toString());
}
}
});
}
}
public static void mappingScript_CodeBlock_6191915969770255456(final MappingScriptContext _context) {
for (SNode concept : ListSequence.fromList(SModelOperations.nodes(_context.getModel(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, "jetbrains.mps.lang.structure.structure.AbstractConceptDeclaration")))) {
if (isEmptyString(SPropertyOperations.getString(concept, MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x46ab0ad5826c74caL, "conceptAlias")))) {
continue;
}
SmartAliasHelper smartAliasHelper = new SmartAliasHelper(SPropertyOperations.getString(concept, MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x46ab0ad5826c74caL, "conceptAlias")));
String expectedRole = smartAliasHelper.getSmartRole();
if (expectedRole == null) {
continue;
}
for (SNode reference : ListSequence.fromList(SLinkOperations.getChildren(concept, MetaAdapterFactory.getContainmentLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0xf979c3ba6bL, "linkDeclaration"))).where(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SPropertyOperations.hasValue(it, MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf980556927L, "metaClass"), "reference", "reference");
}
})) {
if (eq_x583g4_a0a0e0a0ae(SPropertyOperations.getString(reference, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")), expectedRole)) {
SNode genuineReference = reference;
while ((SLinkOperations.getTarget(genuineReference, MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf98051c244L, "specializedLink")) != null)) {
genuineReference = SLinkOperations.getTarget(genuineReference, MetaAdapterFactory.getReferenceLink(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf98051c244L, "specializedLink"));
}
if (genuineReference != reference) {
SPropertyOperations.set(concept, MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, 0x46ab0ad5826c74caL, "conceptAlias"), smartAliasHelper.replaceRole(SPropertyOperations.getString(genuineReference, MetaAdapterFactory.getProperty(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf98052f333L, "role"))));
}
break;
}
}
}
}
public static Object insertMacro_varValue_4630900134062319164(final TemplateVarContext _context) {
return ListSequence.fromList(SModelOperations.nodes(_context.getInputModel(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, "jetbrains.mps.lang.structure.structure.AbstractConceptDeclaration"))).sort(new ISelector<SNode, String>() {
public String select(SNode it) {
return SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
}, true);
}
public static Object insertMacro_varValue_2181124456585750556(final TemplateVarContext _context) {
SNode cd = SNodeOperations.as(_context.getNode(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L, "jetbrains.mps.lang.structure.structure.ConceptDeclaration"));
Iterable<SNode> allSuperConcepts = AbstractConceptDeclaration__BehaviorDescriptor.getAllSuperConcepts_id2A8AB0rAWpG.invoke(cd, ((boolean) false));
final SNodeReference ifacePartNode = new SNodePointer("r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)", "1319728274784973096");
final SNodeReference implStubNode = new SNodePointer("r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)", "6999738288738427190");
final SNodeReference implNode = new SNodePointer("r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)", "1319728274783077719");
// order copied from BaseConceptDescriptor.getConceptKind
// FIXME introduce SNodeReference return value from RM and use it here
if ((Sequence.fromIterable(allSuperConcepts).findFirst(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SNodeOperations.getPointer(it).equals(ifacePartNode);
}
}) != null)) {
return "INTERFACE";
}
if ((Sequence.fromIterable(allSuperConcepts).findFirst(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SNodeOperations.getPointer(it).equals(implStubNode);
}
}) != null)) {
return "IMPLEMENTATION_WITH_STUB";
}
if ((Sequence.fromIterable(allSuperConcepts).findFirst(new IWhereFilter<SNode>() {
public boolean accept(SNode it) {
return SNodeOperations.getPointer(it).equals(implNode);
}
}) != null)) {
return "IMPLEMENTATION";
}
return "NORMAL";
}
public static Object insertMacro_varValue_1444496069593706122(final TemplateVarContext _context) {
return ListSequence.fromList(SModelOperations.nodes(_context.getInputModel(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, "jetbrains.mps.lang.structure.structure.AbstractConceptDeclaration"))).sort(new ISelector<SNode, String>() {
public String select(SNode it) {
return SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
}, true);
}
public static Object insertMacro_varValue_8071309295074792059(final TemplateVarContext _context) {
SModule module = _context.getOriginalInputModel().getModule();
return (module instanceof Language ? MetaIdByDeclaration.getLanguageId(((Language) module)) : null);
}
public static Object insertMacro_varValue_2106591422590124526(final TemplateVarContext _context) {
return ListSequence.fromList(SModelOperations.nodes(_context.getInputModel(), MetaAdapterFactory.getConcept(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0x1103553c5ffL, "jetbrains.mps.lang.structure.structure.AbstractConceptDeclaration"))).sort(new ISelector<SNode, String>() {
public String select(SNode it) {
return SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
}, true);
}
private final Map<String, ReductionRuleCondition> rrcMethods = new HashMap<String, ReductionRuleCondition>();
{
int i = 0;
rrcMethods.put("5934105035579768109", new QueriesGenerated.RRC(i++));
rrcMethods.put("5934105035579769160", new QueriesGenerated.RRC(i++));
rrcMethods.put("5934105035579769276", new QueriesGenerated.RRC(i++));
rrcMethods.put("1570228009929814969", new QueriesGenerated.RRC(i++));
}
@Override
@NotNull
public ReductionRuleCondition getReductionRuleCondition(@NotNull QueryKey identity) {
final String id = identity.getTemplateNode().getNodeId().toString();
if (!(rrcMethods.containsKey(id))) {
return super.getReductionRuleCondition(identity);
}
return rrcMethods.get(id);
}
private static class RRC implements ReductionRuleCondition {
private final int methodKey;
public RRC(int methodKey) {
this.methodKey = methodKey;
}
@Override
public boolean check(ReductionRuleQueryContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return QueriesGenerated.baseMappingRule_Condition_5934105035579768113(ctx);
case 1:
return QueriesGenerated.baseMappingRule_Condition_5934105035579769162(ctx);
case 2:
return QueriesGenerated.baseMappingRule_Condition_5934105035579769278(ctx);
case 3:
return QueriesGenerated.baseMappingRule_Condition_1570228009929814973(ctx);
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no condition method for rule %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private final Map<String, CreateRootCondition> crcMethods = new HashMap<String, CreateRootCondition>();
{
int i = 0;
crcMethods.put("5088050568745383101", new QueriesGenerated.CRC(i++));
crcMethods.put("2913371883554406284", new QueriesGenerated.CRC(i++));
crcMethods.put("8071309295074026633", new QueriesGenerated.CRC(i++));
}
@Override
@NotNull
public CreateRootCondition getCreateRootRuleCondition(@NotNull QueryKey identity) {
String id = identity.getTemplateNode().getNodeId().toString();
if (!(crcMethods.containsKey(id))) {
return super.getCreateRootRuleCondition(identity);
}
return crcMethods.get(id);
}
private static class CRC implements CreateRootCondition {
private final int methodKey;
public CRC(int methodKey) {
this.methodKey = methodKey;
}
@Override
public boolean check(@NotNull CreateRootRuleContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return QueriesGenerated.createRootRule_Condition_3125857749401203974(ctx);
case 1:
return QueriesGenerated.createRootRule_Condition_2913371883554406285(ctx);
case 2:
return QueriesGenerated.createRootRule_Condition_8071309295074026876(ctx);
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no condition method for rule %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private final Map<String, ScriptCodeBlock> mscbMethods = new HashMap<String, ScriptCodeBlock>();
{
int i = 0;
mscbMethods.put("9005308665740198087", new QueriesGenerated.SCB(i++));
mscbMethods.put("6191915969770255455", new QueriesGenerated.SCB(i++));
}
@Override
@NotNull
public ScriptCodeBlock getScriptCodeBlock(@NotNull QueryKey identity) {
final String id = identity.getTemplateNode().getNodeId().toString();
if (!(mscbMethods.containsKey(id))) {
return super.getScriptCodeBlock(identity);
}
return mscbMethods.get(id);
}
private static class SCB implements ScriptCodeBlock {
private final int methodKey;
public SCB(int methodKey) {
this.methodKey = methodKey;
}
@Override
public void invoke(MappingScriptContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
QueriesGenerated.mappingScript_CodeBlock_9005308665740198088(ctx);
return;
case 1:
QueriesGenerated.mappingScript_CodeBlock_6191915969770255456(ctx);
return;
default:
throw new GenerationFailureException(String.format("There's no code block with method index %d ", methodKey));
}
}
}
private final Map<String, SourceNodeQuery> snqMethods = new HashMap<String, SourceNodeQuery>();
{
int i = 0;
snqMethods.put("6565560734627549315", new QueriesGenerated.SNQ(i++));
}
@NotNull
@Override
public SourceNodeQuery getSourceNodeQuery(@NotNull QueryKey identity) {
final String id = ((QueryKeyImpl) identity).getQueryNodeId().toString();
if (!(snqMethods.containsKey(id))) {
return super.getSourceNodeQuery(identity);
}
return snqMethods.get(id);
}
private static class SNQ implements SourceNodeQuery {
private final int methodKey;
public SNQ(int methodKey) {
this.methodKey = methodKey;
}
@Nullable
public SNode evaluate(@NotNull SourceSubstituteMacroNodeContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return QueriesGenerated.sourceNodeQuery_6565560734627549315(ctx);
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private final Map<String, SourceNodesQuery> snsqMethods = new HashMap<String, SourceNodesQuery>();
{
int i = 0;
snsqMethods.put("1174698255353", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("1174700250815", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("1174700303502", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("2318347719271987308", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("8768039269252246206", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("4630900134062580139", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("4267113346162549690", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("4927458743547626543", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("4927458743550869321", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("4927458743551107530", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("540685334803788484", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("1444496069593705158", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("6565560734627015094", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("6565560734627015770", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("6565560734627067786", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("2913371883555101131", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("2106591422590153819", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("2106591422590220354", new QueriesGenerated.SNsQ(i++));
}
@NotNull
@Override
public SourceNodesQuery getSourceNodesQuery(@NotNull QueryKey identity) {
final String id = ((QueryKeyImpl) identity).getQueryNodeId().toString();
if (!(snsqMethods.containsKey(id))) {
return super.getSourceNodesQuery(identity);
}
return snsqMethods.get(id);
}
private static class SNsQ implements SourceNodesQuery {
private final int methodKey;
public SNsQ(int methodKey) {
this.methodKey = methodKey;
}
@NotNull
public Collection<SNode> evaluate(@NotNull SourceSubstituteMacroNodesContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_1174698255353(ctx));
case 1:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_1174700250815(ctx));
case 2:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_1174700303502(ctx));
case 3:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2318347719271987308(ctx));
case 4:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_8768039269252246206(ctx));
case 5:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_4630900134062580139(ctx));
case 6:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_4267113346162549690(ctx));
case 7:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_4927458743547626543(ctx));
case 8:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_4927458743550869321(ctx));
case 9:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_4927458743551107530(ctx));
case 10:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_540685334803788484(ctx));
case 11:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_1444496069593705158(ctx));
case 12:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6565560734627015094(ctx));
case 13:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6565560734627015770(ctx));
case 14:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6565560734627067786(ctx));
case 15:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2913371883555101131(ctx));
case 16:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2106591422590153819(ctx));
case 17:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2106591422590220354(ctx));
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private final Map<String, PropertyValueQuery> pvqMethods = new HashMap<String, PropertyValueQuery>();
{
int i = 0;
pvqMethods.put("1095942431179", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "_external_value_"));
pvqMethods.put("1095942431182", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "_constant_name_"));
pvqMethods.put("1095695217157", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "class_EnumerationDataTypeDeclaration_Enum"));
pvqMethods.put("1095703043309", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "class_EnumerationDataTypeDeclaration_PropertySupport"));
pvqMethods.put("1212087871488", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "null text"));
pvqMethods.put("1096451933805", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "class_ConstraintDataTypeDeclaration_PropertySupport"));
pvqMethods.put("1096452191790", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "constraint"));
pvqMethods.put("2318347719271989662", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "myConcept"));
pvqMethods.put("4267113346160916614", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("4267113346160896483", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("4927458743547465293", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), null));
pvqMethods.put("4927458743547477981", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), null));
pvqMethods.put("4927458743547485435", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), "false"));
pvqMethods.put("4267113346162334601", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), null));
pvqMethods.put("4927458743549784291", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("4927458743547865619", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("4927458743547951843", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x3b418722717710b4L, 0x3b418722717710b5L, "value"), "0L"));
pvqMethods.put("4927458743550489262", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("4927458743551196112", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("4927458743551196120", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x3b418722717710b4L, 0x3b418722717710b5L, "value"), "0L"));
pvqMethods.put("4927458743554402597", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), "true"));
pvqMethods.put("7538749174841931265", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("4927458743551302853", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("4927458743551302861", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x3b418722717710b4L, 0x3b418722717710b5L, "value"), "0L"));
pvqMethods.put("4927458743555722046", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), "true"));
pvqMethods.put("4927458743555780385", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), "true"));
pvqMethods.put("4927458743555821202", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), "true"));
pvqMethods.put("7538749174842090041", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("4927458743551741376", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("540685334803911282", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "createDescriptorForConcept"));
pvqMethods.put("1444496069593705179", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "myConceptProps"));
pvqMethods.put("6565560734627068393", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x3b418722717710b4L, 0x3b418722717710b5L, "value"), "0L"));
pvqMethods.put("6565560734627068406", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("6565560734627105852", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x3b418722717710b4L, 0x3b418722717710b5L, "value"), "0L"));
pvqMethods.put("6565560734627105865", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("6565560734627144994", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x3b418722717710b4L, 0x3b418722717710b5L, "value"), "0L"));
pvqMethods.put("6565560734627145007", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("6565560734627287292", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "desc"));
pvqMethods.put("6565560734627505136", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("4267113346160386982", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x3b418722717710b4L, 0x3b418722717710b5L, "value"), "0L"));
pvqMethods.put("4267113346160439226", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x3b418722717710b4L, 0x3b418722717710b5L, "value"), "0L"));
pvqMethods.put("4267113346160443043", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x3b418722717710b4L, 0x3b418722717710b5L, "value"), "0L"));
pvqMethods.put("2106591422590157355", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc59b314L, 0xf8cc59b315L, "value"), "0"));
pvqMethods.put("2106591422590167042", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "CONCEPT"));
pvqMethods.put("8071309295074797321", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x3b418722717710b4L, 0x3b418722717710b5L, "value"), "0L"));
pvqMethods.put("8071309295074800627", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x3b418722717710b4L, 0x3b418722717710b5L, "value"), "0L"));
pvqMethods.put("8071309295073760608", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x3b418722717710b4L, 0x3b418722717710b5L, "value"), "0L"));
}
@NotNull
@Override
public PropertyValueQuery getPropertyValueQuery(@NotNull QueryKey identity) {
final String id = identity.getTemplateNode().getNodeId().toString();
if (!(pvqMethods.containsKey(id))) {
return super.getPropertyValueQuery(identity);
}
return pvqMethods.get(id);
}
private static class PVQ extends PropertyValueQuery.Base {
private final int methodKey;
/*package*/ PVQ(int methodKey, SProperty property, String templateValue) {
super(property, templateValue);
this.methodKey = methodKey;
}
@Nullable
public Object evaluate(@NotNull PropertyMacroContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return QueriesGenerated.propertyMacro_GetPropertyValue_1174698175154(ctx);
case 1:
return QueriesGenerated.propertyMacro_GetPropertyValue_1174698110415(ctx);
case 2:
return QueriesGenerated.propertyMacro_GetPropertyValue_1174698054118(ctx);
case 3:
return QueriesGenerated.propertyMacro_GetPropertyValue_1219108817229(ctx);
case 4:
return QueriesGenerated.propertyMacro_GetPropertyValue_1212087871489(ctx);
case 5:
return QueriesGenerated.propertyMacro_GetPropertyValue_1174696429121(ctx);
case 6:
return QueriesGenerated.propertyMacro_GetPropertyValue_1174697681347(ctx);
case 7:
return QueriesGenerated.propertyMacro_GetPropertyValue_2318347719271989663(ctx);
case 8:
return QueriesGenerated.propertyMacro_GetPropertyValue_4267113346160916615(ctx);
case 9:
return QueriesGenerated.propertyMacro_GetPropertyValue_4267113346160896484(ctx);
case 10:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743547465294(ctx);
case 11:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743547477982(ctx);
case 12:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743547485436(ctx);
case 13:
return QueriesGenerated.propertyMacro_GetPropertyValue_4267113346162334602(ctx);
case 14:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743549784292(ctx);
case 15:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743547865620(ctx);
case 16:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743547951844(ctx);
case 17:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743550489263(ctx);
case 18:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743551196113(ctx);
case 19:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743551196121(ctx);
case 20:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743554402598(ctx);
case 21:
return QueriesGenerated.propertyMacro_GetPropertyValue_7538749174841931266(ctx);
case 22:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743551302854(ctx);
case 23:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743551302862(ctx);
case 24:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743555722047(ctx);
case 25:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743555780386(ctx);
case 26:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743555821203(ctx);
case 27:
return QueriesGenerated.propertyMacro_GetPropertyValue_7538749174842090042(ctx);
case 28:
return QueriesGenerated.propertyMacro_GetPropertyValue_4927458743551741377(ctx);
case 29:
return QueriesGenerated.propertyMacro_GetPropertyValue_540685334803911283(ctx);
case 30:
return QueriesGenerated.propertyMacro_GetPropertyValue_1444496069593705180(ctx);
case 31:
return QueriesGenerated.propertyMacro_GetPropertyValue_6565560734627068394(ctx);
case 32:
return QueriesGenerated.propertyMacro_GetPropertyValue_6565560734627068407(ctx);
case 33:
return QueriesGenerated.propertyMacro_GetPropertyValue_6565560734627105853(ctx);
case 34:
return QueriesGenerated.propertyMacro_GetPropertyValue_6565560734627105866(ctx);
case 35:
return QueriesGenerated.propertyMacro_GetPropertyValue_6565560734627144995(ctx);
case 36:
return QueriesGenerated.propertyMacro_GetPropertyValue_6565560734627145008(ctx);
case 37:
return QueriesGenerated.propertyMacro_GetPropertyValue_6565560734627287293(ctx);
case 38:
return QueriesGenerated.propertyMacro_GetPropertyValue_6565560734627505137(ctx);
case 39:
return QueriesGenerated.propertyMacro_GetPropertyValue_4267113346160386983(ctx);
case 40:
return QueriesGenerated.propertyMacro_GetPropertyValue_4267113346160439227(ctx);
case 41:
return QueriesGenerated.propertyMacro_GetPropertyValue_4267113346160443044(ctx);
case 42:
return QueriesGenerated.propertyMacro_GetPropertyValue_2106591422590157356(ctx);
case 43:
return QueriesGenerated.propertyMacro_GetPropertyValue_2106591422590167043(ctx);
case 44:
return QueriesGenerated.propertyMacro_GetPropertyValue_8071309295074797322(ctx);
case 45:
return QueriesGenerated.propertyMacro_GetPropertyValue_8071309295074800628(ctx);
case 46:
return QueriesGenerated.propertyMacro_GetPropertyValue_8071309295073760609(ctx);
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private final Map<String, IfMacroCondition> imcMethods = new HashMap<String, IfMacroCondition>();
{
int i = 0;
imcMethods.put("1212083662246", new QueriesGenerated.IfMC(i++));
imcMethods.put("1212084337842", new QueriesGenerated.IfMC(i++));
imcMethods.put("4927458743547296534", new QueriesGenerated.IfMC(i++));
imcMethods.put("4927458743547332004", new QueriesGenerated.IfMC(i++));
imcMethods.put("4267113346161045507", new QueriesGenerated.IfMC(i++));
imcMethods.put("4927458743549707773", new QueriesGenerated.IfMC(i++));
imcMethods.put("4927458743550484648", new QueriesGenerated.IfMC(i++));
imcMethods.put("7538749174841931235", new QueriesGenerated.IfMC(i++));
imcMethods.put("7538749174842090009", new QueriesGenerated.IfMC(i++));
imcMethods.put("4927458743552063163", new QueriesGenerated.IfMC(i++));
imcMethods.put("2181124456585885816", new QueriesGenerated.IfMC(i++));
imcMethods.put("4927458743551656361", new QueriesGenerated.IfMC(i++));
imcMethods.put("6565560734626917178", new QueriesGenerated.IfMC(i++));
imcMethods.put("6565560734626985323", new QueriesGenerated.IfMC(i++));
imcMethods.put("6565560734627275548", new QueriesGenerated.IfMC(i++));
imcMethods.put("6565560734627370611", new QueriesGenerated.IfMC(i++));
imcMethods.put("6565560734627387384", new QueriesGenerated.IfMC(i++));
}
@NotNull
@Override
public IfMacroCondition getIfMacroCondition(@NotNull QueryKey identity) {
final String id = identity.getTemplateNode().getNodeId().toString();
if (!(imcMethods.containsKey(id))) {
return super.getIfMacroCondition(identity);
}
return imcMethods.get(id);
}
private static class IfMC implements IfMacroCondition {
private final int methodKey;
public IfMC(int methodKey) {
this.methodKey = methodKey;
}
@Override
public boolean check(@NotNull IfMacroContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return QueriesGenerated.ifMacro_Condition_1212083662247(ctx);
case 1:
return QueriesGenerated.ifMacro_Condition_1212084337843(ctx);
case 2:
return QueriesGenerated.ifMacro_Condition_4927458743547296537(ctx);
case 3:
return QueriesGenerated.ifMacro_Condition_4927458743547332005(ctx);
case 4:
return QueriesGenerated.ifMacro_Condition_4267113346161045510(ctx);
case 5:
return QueriesGenerated.ifMacro_Condition_4927458743549707776(ctx);
case 6:
return QueriesGenerated.ifMacro_Condition_4927458743550484650(ctx);
case 7:
return QueriesGenerated.ifMacro_Condition_7538749174841931236(ctx);
case 8:
return QueriesGenerated.ifMacro_Condition_7538749174842090010(ctx);
case 9:
return QueriesGenerated.ifMacro_Condition_4927458743552063166(ctx);
case 10:
return QueriesGenerated.ifMacro_Condition_2181124456585885818(ctx);
case 11:
return QueriesGenerated.ifMacro_Condition_4927458743551656364(ctx);
case 12:
return QueriesGenerated.ifMacro_Condition_6565560734626917179(ctx);
case 13:
return QueriesGenerated.ifMacro_Condition_6565560734626985326(ctx);
case 14:
return QueriesGenerated.ifMacro_Condition_6565560734627275551(ctx);
case 15:
return QueriesGenerated.ifMacro_Condition_6565560734627370612(ctx);
case 16:
return QueriesGenerated.ifMacro_Condition_6565560734627387385(ctx);
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no condition method for if macro %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private final Map<String, ReferenceTargetQuery> rtqMethods = new HashMap<String, ReferenceTargetQuery>();
{
rtqMethods.put("1095942901438", new QueriesGenerated.RTQ(0, "_constant_name_"));
rtqMethods.put("4927458743552101933", new QueriesGenerated.RTQ(1, "NORMAL"));
rtqMethods.put("4927458743552102971", new QueriesGenerated.RTQ(2, "GLOBAL"));
rtqMethods.put("4147950839246952263", new QueriesGenerated.RTQ(3, "StructureAspectDescriptor"));
rtqMethods.put("4147950839246989516", new QueriesGenerated.RTQ(4, "ConceptPresentationAspectImpl"));
}
@NotNull
@Override
public ReferenceTargetQuery getReferenceTargetQuery(@NotNull QueryKey queryKey) {
final String id = queryKey.getTemplateNode().getNodeId().toString();
if (!(rtqMethods.containsKey(id))) {
return super.getReferenceTargetQuery(queryKey);
}
return rtqMethods.get(id);
}
private static class RTQ extends ReferenceTargetQuery.Base {
private final int methodKey;
/*package*/ RTQ(int methodKey, String templateValue) {
super(templateValue);
this.methodKey = methodKey;
}
@Nullable
public Object evaluate(@NotNull ReferenceMacroContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return QueriesGenerated.referenceMacro_GetReferent_1197509802062(ctx);
case 1:
return QueriesGenerated.referenceMacro_GetReferent_4927458743552101934(ctx);
case 2:
return QueriesGenerated.referenceMacro_GetReferent_4927458743552102972(ctx);
case 3:
return QueriesGenerated.referenceMacro_GetReferent_4147950839246952264(ctx);
case 4:
return QueriesGenerated.referenceMacro_GetReferent_4147950839246989517(ctx);
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private final Map<String, VariableValueQuery> vvqMethods = new HashMap<String, VariableValueQuery>();
{
vvqMethods.put("4630900134062319162", new QueriesGenerated.VVQ(0));
vvqMethods.put("2181124456585750554", new QueriesGenerated.VVQ(1));
vvqMethods.put("1444496069593706121", new QueriesGenerated.VVQ(2));
vvqMethods.put("8071309295074792057", new QueriesGenerated.VVQ(3));
vvqMethods.put("2106591422590124524", new QueriesGenerated.VVQ(4));
}
@NotNull
@Override
public VariableValueQuery getVariableValueQuery(@NotNull QueryKey queryKey) {
final String id = queryKey.getTemplateNode().getNodeId().toString();
if (!(vvqMethods.containsKey(id))) {
return super.getVariableValueQuery(queryKey);
}
return vvqMethods.get(id);
}
private static class VVQ implements VariableValueQuery {
private final int methodKey;
/*package*/ VVQ(int methodKey) {
this.methodKey = methodKey;
}
@Nullable
public Object evaluate(@NotNull TemplateVarContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return QueriesGenerated.insertMacro_varValue_4630900134062319164(ctx);
case 1:
return QueriesGenerated.insertMacro_varValue_2181124456585750556(ctx);
case 2:
return QueriesGenerated.insertMacro_varValue_1444496069593706122(ctx);
case 3:
return QueriesGenerated.insertMacro_varValue_8071309295074792059(ctx);
case 4:
return QueriesGenerated.insertMacro_varValue_2106591422590124526(ctx);
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private final Map<String, CallArgumentQuery> caqMethods = new HashMap<String, CallArgumentQuery>();
{
caqMethods.put("4267113346160571066", new QueriesGenerated.CAQ(0));
caqMethods.put("4267113346162354796", new QueriesGenerated.CAQ(1));
caqMethods.put("4267113346163213778", new QueriesGenerated.CAQ(2));
caqMethods.put("4927458743554510186", new QueriesGenerated.CAQ(3));
caqMethods.put("4927458743554610988", new QueriesGenerated.CAQ(4));
caqMethods.put("6565560734626917210", new QueriesGenerated.CAQ(5));
}
@NotNull
@Override
public CallArgumentQuery getTemplateCallArgumentQuery(@NotNull QueryKey queryKey) {
final String id = queryKey.getTemplateNode().getNodeId().toString();
if (!(caqMethods.containsKey(id))) {
return super.getTemplateCallArgumentQuery(queryKey);
}
return caqMethods.get(id);
}
private static class CAQ implements CallArgumentQuery {
private final int methodKey;
/*package*/ CAQ(int methodKey) {
this.methodKey = methodKey;
}
@Nullable
public Object evaluate(@NotNull TemplateArgumentContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return QueriesGenerated.templateArgumentQuery_4267113346160571066(ctx);
case 1:
return QueriesGenerated.templateArgumentQuery_4267113346162354796(ctx);
case 2:
return QueriesGenerated.templateArgumentQuery_4267113346163213778(ctx);
case 3:
return QueriesGenerated.templateArgumentQuery_4927458743554510186(ctx);
case 4:
return QueriesGenerated.templateArgumentQuery_4927458743554610988(ctx);
case 5:
return QueriesGenerated.templateArgumentQuery_6565560734626917210(ctx);
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private final Map<String, MapNodeQuery> mnqMethods = new HashMap<String, MapNodeQuery>();
{
mnqMethods.put("1178978027690", new QueriesGenerated.MNQ(0));
}
@NotNull
@Override
public MapNodeQuery getMapNodeQuery(@NotNull QueryKey queryKey) {
final String id = queryKey.getTemplateNode().getNodeId().toString();
if (!(mnqMethods.containsKey(id))) {
return super.getMapNodeQuery(queryKey);
}
return mnqMethods.get(id);
}
private static class MNQ implements MapNodeQuery {
private final int methodKey;
/*package*/ MNQ(int methodKey) {
this.methodKey = methodKey;
}
@Nullable
public SNode evaluate(@NotNull MapSrcMacroContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return QueriesGenerated.mapSrcMacro_mapper_1178978044712(ctx);
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private static boolean isNotEmptyString(String str) {
return str != null && str.length() > 0;
}
private static boolean isEmptyString(String str) {
return str == null || str.length() == 0;
}
private static boolean eq_x583g4_a0a0e0a0ae(Object a, Object b) {
return (a != null ? a.equals(b) : a == b);
}
}