Example #1
0
 @NotNull
 public static ReferenceDescriptor getReferenceDescriptor(
     @NotNull SNode enclosingNode, @NotNull String role, int index) {
   return new ReferenceDescriptor(ModelConstraints.getReferenceDescriptor(enclosingNode, role));
 }
Example #2
0
 @NotNull
 public static Scope getScope(
     @NotNull SNode enclosingNode, @NotNull String role, int index, IOperationContext context) {
   return ModelConstraints.getReferenceDescriptor(enclosingNode, role).getScope();
 }
Example #3
0
 @NotNull
 public static ReferenceDescriptor getReferenceDescriptor(@NotNull SReference reference) {
   return new ReferenceDescriptor(ModelConstraints.getReferenceDescriptor(reference));
 }