Package cc.redberry.core.parser

Examples of cc.redberry.core.parser.ParserException


                        descriptor.getSymmetries().add(b, false, 1, 0);
                        return descriptor;
                    }
                } else {
                    if (sname.equals(kroneckerAndMetricNames[1]))
                        throw new ParserException("Metric is not specified for non metric index type.");
                    if (sname.equals(kroneckerAndMetricNames[0])) {
                        if (its.getTypeData(b).states.get(0) != true || its.getTypeData(b).states.get(1) != false)
                            throw new ParserException("Illegal Kroneckers indices states.");
                        NameDescriptor descriptor = new NameDescriptorForMetricAndKronecker(kroneckerAndMetricNames, b, id);
                        return descriptor;
                    }
                }
            }
View Full Code Here


                        descriptor.getSymmetries().add(b, false, 1, 0);
                        return descriptor;
                    }
                } else {
                    if (sname.equals(kroneckerAndMetricNames[1]))
                        throw new ParserException("Metric is not specified for non metric index type.");
                    if (sname.equals(kroneckerAndMetricNames[0])) {
                        if (its.getTypeData(b).states.get(0) != true || its.getTypeData(b).states.get(1) != false)
                            throw new ParserException("Illegal Kroneckers indices states.");
                        NameDescriptor descriptor = new NameDescriptorForMetricAndKronecker(kroneckerAndMetricNames, b, id);
                        return descriptor;
                    }
                }
            }
View Full Code Here

                        descriptor.getSymmetries().add(b, false, 1, 0);
                        return descriptor;
                    }
                } else {
                    if (sname.equals(kroneckerAndMetricNames[1]))
                        throw new ParserException("Metric is not specified for non metric index type.");
                    if (sname.equals(kroneckerAndMetricNames[0])) {
                        if (its.getTypeData(b).states.get(0) != true || its.getTypeData(b).states.get(1) != false)
                            throw new ParserException("Illegal Kroneckers indices states.");
                        NameDescriptor descriptor = new NameDescriptorForMetricAndKronecker(kroneckerAndMetricNames, b, id);
                        return descriptor;
                    }
                }
            }
View Full Code Here

                        descriptor.getSymmetries().add(b, false, 1, 0);
                        return descriptor;
                    }
                } else {
                    if (sname.equals(kroneckerAndMetricNames[1]))
                        throw new ParserException("Metric is not specified for non metric index type.");
                    if (sname.equals(kroneckerAndMetricNames[0])) {
                        if (its.getTypeData(b).states.get(0) != true || its.getTypeData(b).states.get(1) != false)
                            throw new ParserException("Illegal Kroneckers indices states.");
                        NameDescriptor descriptor = new NameDescriptorForMetricAndKronecker(kroneckerAndMetricNames, b, id);
                        return descriptor;
                    }
                }
            }
View Full Code Here

                        descriptor.getSymmetries().add(b, false, 1, 0);
                        return descriptor;
                    }
                } else {
                    if (sname.equals(kroneckerAndMetricNames[1]))
                        throw new ParserException("Metric is not specified for non metric index type.");
                    if (sname.equals(kroneckerAndMetricNames[0])) {
                        if (its.getTypeData(b).states.get(0) != true || its.getTypeData(b).states.get(1) != false)
                            throw new ParserException("Illegal Kroneckers indices states.");
                        NameDescriptor descriptor = new NameDescriptorForMetricAndKronecker(kroneckerAndMetricNames, b, id);
                        return descriptor;
                    }
                }
            }
View Full Code Here

                        descriptor.getSymmetries().add(b, false, 1, 0);
                        return descriptor;
                    }
                } else {
                    if (sname.equals(kroneckerAndMetricNames[1]))
                        throw new ParserException("Metric is not specified for non metric index type.");
                    if (sname.equals(kroneckerAndMetricNames[0])) {
                        if (its.getTypeData(b).states.get(0) != true || its.getTypeData(b).states.get(1) != false)
                            throw new ParserException("Illegal Kroneckers indices states.");
                        NameDescriptor descriptor = new NameDescriptorForMetricAndKronecker(kroneckerAndMetricNames, b, id);
                        return descriptor;
                    }
                }
            }
View Full Code Here

TOP

Related Classes of cc.redberry.core.parser.ParserException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.