1 16 19 20 package org.apache.xalan.xsltc.compiler; 21 22 import org.apache.xalan.xsltc.compiler.util.ClassGenerator; 23 import org.apache.xalan.xsltc.compiler.util.MethodGenerator; 24 import org.apache.xalan.xsltc.compiler.util.Type; 25 import org.apache.xalan.xsltc.compiler.util.TypeCheckError; 26 27 31 final class NamespaceAlias extends TopLevelElement { 32 33 private String sPrefix; 34 private String rPrefix; 35 36 40 public void parseContents(Parser parser) { 41 sPrefix = getAttribute("stylesheet-prefix"); 42 rPrefix = getAttribute("result-prefix"); 43 parser.getSymbolTable().addPrefixAlias(sPrefix,rPrefix); 44 } 45 46 public Type typeCheck(SymbolTable stable) throws TypeCheckError { 47 return Type.Void; 48 } 49 50 public void translate(ClassGenerator classGen, MethodGenerator methodGen) { 51 } 53 } 54 | Popular Tags |