Skip to content

Commit

Permalink
Moved the parser model nodes to a separate package
Browse files Browse the repository at this point in the history
  • Loading branch information
hugithordarson committed Nov 24, 2024
1 parent 8fc25df commit c030b3a
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
import ng.appserver.templating.parser.NGDeclarationFormatException;
import ng.appserver.templating.parser.NGHTMLFormatException;
import ng.appserver.templating.parser.NGTemplateParser;
import ng.appserver.templating.parser.PBasicNode;
import ng.appserver.templating.parser.PCommentNode;
import ng.appserver.templating.parser.PGroupNode;
import ng.appserver.templating.parser.PHTMLNode;
import ng.appserver.templating.parser.PNode;
import ng.appserver.templating.parser.NGDeclaration.NGBindingValue;
import ng.appserver.templating.parser.model.PBasicNode;
import ng.appserver.templating.parser.model.PCommentNode;
import ng.appserver.templating.parser.model.PGroupNode;
import ng.appserver.templating.parser.model.PHTMLNode;
import ng.appserver.templating.parser.model.PNode;
import ng.xperimental.NGElementNotFoundElement;
import ng.xperimental.NGErrorMessageElement;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import java.util.List;
import java.util.Objects;

import ng.appserver.templating.parser.model.PHTMLNode;
import ng.appserver.templating.parser.model.PNode;

/**
* Represents a dynamic tag in the HTML part of a template
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
import java.util.StringTokenizer;

import ng.appserver.templating.parser.NGDeclaration.NGBindingValue;
import ng.appserver.templating.parser.model.PBasicNode;
import ng.appserver.templating.parser.model.PCommentNode;
import ng.appserver.templating.parser.model.PGroupNode;
import ng.appserver.templating.parser.model.PNode;

/**
* The primary entry point for component parsing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package ng.appserver.templating.parser;
package ng.appserver.templating.parser.model;

import java.util.List;
import java.util.Map;
import java.util.Objects;

import ng.appserver.templating.parser.NGDynamicHTMLTag;
import ng.appserver.templating.parser.NGDeclaration.NGBindingValue;

public record PBasicNode( NGDynamicHTMLTag tag ) implements PNode {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ng.appserver.templating.parser;
package ng.appserver.templating.parser.model;

import java.util.Objects;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ng.appserver.templating.parser;
package ng.appserver.templating.parser.model;

import java.util.List;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ng.appserver.templating.parser;
package ng.appserver.templating.parser.model;

import java.util.Objects;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package ng.appserver.templating.parser;
package ng.appserver.templating.parser.model;

public sealed interface PNode permits PBasicNode, PGroupNode, PHTMLNode, PCommentNode {}

0 comments on commit c030b3a

Please sign in to comment.