Class QueryKeyImpl
- java.lang.Object
 - 
- jetbrains.mps.generator.impl.query.QueryKeyImpl
 
 
- 
- All Implemented Interfaces:
 QueryKey
public final class QueryKeyImpl extends Object implements QueryKey
At the moment, some generated methods use QueryKey.getTemplateNode().getNodeId() to identify methods, while others needgetQueryNodeId(). SinceReflectiveQueryProvidergone (which could not live without #getQueryNodeId() as it's the identity to derive method name from in most cases), it seems I can implement equals/hashCode here to allow code like "myGeneratedField.contains(queryKey)" in QG (to replace "string id = queryKey.getTemplateNode().getNodeId().toString()) FIXME equals/hashCode and not exposure of internal structure in generated templates!- Since:
 - 3.4
 
 
- 
- 
Constructor Summary
Constructors Constructor Description QueryKeyImpl(SNodeReference templateNode, SNodeId functionNodeId) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SNodeIdgetQueryNodeId()SNodeReferencegetTemplateNode() 
 - 
 
- 
- 
Constructor Detail
- 
QueryKeyImpl
public QueryKeyImpl(@Nullable SNodeReference templateNode, @NotNull SNodeId functionNodeId)
 
 - 
 
- 
Method Detail
- 
getTemplateNode
@Nullable public SNodeReference getTemplateNode()
- Specified by:
 getTemplateNodein interfaceQueryKey- Returns:
 - presumably, an identity of a query host handy to identify problems
 
 
- 
getQueryNodeId
public SNodeId getQueryNodeId()
 
 - 
 
 -