1 19 20 package org.netbeans.modules.web.core.syntax.deprecated; 21 22 import org.netbeans.modules.web.core.syntax.deprecated.JspMultiSyntax; 23 import org.netbeans.modules.web.core.syntax.*; 24 import org.netbeans.editor.Syntax; 25 import org.netbeans.modules.web.core.syntax.spi.JSPColoringData; 26 27 45 public class Jsp11Syntax extends JspMultiSyntax { 46 47 48 public Jsp11Syntax() { 49 super(); 50 } 51 52 public Jsp11Syntax(Syntax contentSyntax, Syntax scriptingSyntax) { 53 super(contentSyntax, scriptingSyntax); 54 } 55 56 58 public Object listenerReference; 59 60 61 public JSPColoringData data; 62 63 protected boolean isJspTag(String tagName) { 64 if (tagName.startsWith("jsp:")) { return true; 68 } 69 if (data == null) 70 return false; 71 72 int colonIndex = tagName.indexOf(':'); 73 if (colonIndex == -1) { 74 return false; 76 } 77 78 return data.isTagLibRegistered(tagName.substring(0, colonIndex)); 80 } 81 82 83 89 protected boolean isELIgnored(boolean inJspTag) { 90 if (data == null) { 91 return false; 92 } 93 if (inJspTag) { 98 return false; 99 } 100 return data.isELIgnored(); 101 } 102 103 104 protected boolean isXMLSyntax(){ 105 if (data == null) { 106 return false; 107 } 108 return data.isXMLSyntax(); 109 } 110 } | Popular Tags |