1 package com.daffodilwoods.daffodildb.server.sql99.ddl.schemadefinition; 2 3 import com.daffodilwoods.database.resource.*; 4 import com.daffodilwoods.daffodildb.server.sql99.dcl.sqlcontrolstatement.Scolon94842719; 5 import com.daffodilwoods.daffodildb.server.serversystem._ServerSession; 6 import java.lang.reflect.Method ; 7 import com.daffodilwoods.daffodildb.server.sql99.token.Sdoublecolon_429400496; 8 9 public class javamethodname implements com.daffodilwoods.daffodildb.utils.parser.StatementExecuter { 10 11 public methodidentifier _methodidentifier0; 12 public Sdoublecolon_429400496 _Sdoublecolon_4294004961; 13 public javaclassname _javaclassname2; 14 15 private String methodName; 16 public Object run(Object object) throws DException { 17 _ServerSession currentSesssion = (_ServerSession) object; 18 setMethodName(); 19 return checkForClassName(currentSesssion); 20 } 21 22 private Class checkForClassName(_ServerSession currentSesssion) throws DException { 23 String className = (String ) _javaclassname2.run(currentSesssion); 24 Class cl = null; 25 try { 26 cl = Class.forName(className); 27 } catch (NoClassDefFoundError ex) { 28 throw new DException("DSE8121", new Object [] {className}); 29 } catch (ClassNotFoundException ex) { 30 throw new DException("DSE8120", new Object [] {className}); 31 } 32 return cl; 33 } 34 35 public void setMethodName() throws DException { 36 methodName = _methodidentifier0.toString(); 37 } 38 39 public String getMethodName() throws DException { 40 return methodName; 41 } 42 43 public Object clone() throws CloneNotSupportedException { 44 return this; 45 } 46 47 public String toString() { 48 StringBuffer str = new StringBuffer (" "); 49 str.append(_javaclassname2); 50 str.append(" "); 51 str.append(_Sdoublecolon_4294004961); 52 str.append(" "); 53 str.append(_methodidentifier0); 54 return str.toString(); 55 } 56 } 57 | Popular Tags |