tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler TagFileProcessor.java
Date Mon, 28 Oct 2002 23:34:14 GMT
luehe       2002/10/28 15:34:14

  Modified:    jasper2/src/share/org/apache/jasper/compiler
                        TagFileProcessor.java
  Log:
  - Removed TagFileProcessor.fragmentInputDirectiveAttrs (no longer needed)
  
  - Renamed
      TagFileProcessor.TagFileVisitor
    to
      TagFileProcessor.TagFileDirectiveVisitor
    which is a more descriptive name for this visitor's duties
  
  Revision  Changes    Path
  1.33      +8 -15     jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagFileProcessor.java
  
  Index: TagFileProcessor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagFileProcessor.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- TagFileProcessor.java	28 Oct 2002 18:16:20 -0000	1.32
  +++ TagFileProcessor.java	28 Oct 2002 23:34:14 -0000	1.33
  @@ -87,7 +87,7 @@
       /**
        * A visitor the tag file
        */
  -    private static class TagFileVisitor extends Node.Visitor {
  +    private static class TagFileDirectiveVisitor extends Node.Visitor {
   
           private static final JspUtil.ValidAttribute[] tagDirectiveAttrs = {
               new JspUtil.ValidAttribute("display-name"),
  @@ -119,14 +119,6 @@
   	    new JspUtil.ValidAttribute("description")
   	};
   
  -	private static final JspUtil.ValidAttribute[] fragmentInputDirectiveAttrs = {
  -	    new JspUtil.ValidAttribute("name", true),
  -	    new JspUtil.ValidAttribute("fragment", true),
  -	    new JspUtil.ValidAttribute("required"),
  -	    new JspUtil.ValidAttribute("type"),
  -	    new JspUtil.ValidAttribute("description")
  -	};
  -
           private ErrorDispatcher err;
   	private TagLibraryInfo tagLibInfo;
   
  @@ -143,8 +135,9 @@
           private Vector attributeVector = new Vector();
           private Vector variableVector = new Vector();
   
  -        public TagFileVisitor(Compiler compiler, TagLibraryInfo tagLibInfo,
  -			      String name) {
  +        public TagFileDirectiveVisitor(Compiler compiler,
  +				       TagLibraryInfo tagLibInfo,
  +				       String name) {
               err = compiler.getErrorDispatcher();
   	    this.tagLibInfo = tagLibInfo;
   	    this.name = name;
  @@ -307,8 +300,8 @@
                                           "jsp.error.file.not.found", tagfile);
   	}
   
  -        TagFileVisitor tagFileVisitor = new TagFileVisitor(pc.getCompiler(),
  -							   tagLibInfo, name);
  +        TagFileDirectiveVisitor tagFileVisitor
  +	    = new TagFileDirectiveVisitor(pc.getCompiler(), tagLibInfo, name);
           page.visit(tagFileVisitor);
   
           return tagFileVisitor.getTagInfo();
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message