Java Code Examples for org.apache.el.util.ReflectionUtil#toTypeArray()
The following examples show how to use
org.apache.el.util.ReflectionUtil#toTypeArray() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MethodExpressionImpl.java From Tomcat8-Source-Read with MIT License | 5 votes |
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { this.expr = in.readUTF(); String type = in.readUTF(); if (!"".equals(type)) { this.expectedType = ReflectionUtil.forName(type); } this.paramTypes = ReflectionUtil.toTypeArray(((String[]) in .readObject())); this.fnMapper = (FunctionMapper) in.readObject(); this.varMapper = (VariableMapper) in.readObject(); }
Example 2
Source File: FunctionMapperImpl.java From Tomcat8-Source-Read with MIT License | 5 votes |
public Method getMethod() { if (this.m == null) { try { Class<?> t = ReflectionUtil.forName(this.owner); Class<?>[] p = ReflectionUtil.toTypeArray(this.types); this.m = t.getMethod(this.name, p); } catch (Exception e) { e.printStackTrace(); } } return this.m; }
Example 3
Source File: MethodExpressionLiteral.java From Tomcat8-Source-Read with MIT License | 5 votes |
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { this.expr = in.readUTF(); String type = in.readUTF(); if (!"".equals(type)) { this.expectedType = ReflectionUtil.forName(type); } this.paramTypes = ReflectionUtil.toTypeArray(((String[]) in .readObject())); }
Example 4
Source File: MethodExpressionImpl.java From Tomcat7.0.67 with Apache License 2.0 | 5 votes |
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { this.expr = in.readUTF(); String type = in.readUTF(); if (!"".equals(type)) { this.expectedType = ReflectionUtil.forName(type); } this.paramTypes = ReflectionUtil.toTypeArray(((String[]) in .readObject())); this.fnMapper = (FunctionMapper) in.readObject(); this.varMapper = (VariableMapper) in.readObject(); }
Example 5
Source File: FunctionMapperImpl.java From Tomcat7.0.67 with Apache License 2.0 | 5 votes |
public Method getMethod() { if (this.m == null) { try { Class<?> t = ReflectionUtil.forName(this.owner); Class<?>[] p = ReflectionUtil.toTypeArray(this.types); this.m = t.getMethod(this.name, p); } catch (Exception e) { e.printStackTrace(); } } return this.m; }
Example 6
Source File: MethodExpressionLiteral.java From Tomcat7.0.67 with Apache License 2.0 | 5 votes |
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { this.expr = in.readUTF(); String type = in.readUTF(); if (!"".equals(type)) { this.expectedType = ReflectionUtil.forName(type); } this.paramTypes = ReflectionUtil.toTypeArray(((String[]) in .readObject())); }
Example 7
Source File: MethodExpressionImpl.java From tomcatsrc with Apache License 2.0 | 5 votes |
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { this.expr = in.readUTF(); String type = in.readUTF(); if (!"".equals(type)) { this.expectedType = ReflectionUtil.forName(type); } this.paramTypes = ReflectionUtil.toTypeArray(((String[]) in .readObject())); this.fnMapper = (FunctionMapper) in.readObject(); this.varMapper = (VariableMapper) in.readObject(); }
Example 8
Source File: FunctionMapperImpl.java From tomcatsrc with Apache License 2.0 | 5 votes |
public Method getMethod() { if (this.m == null) { try { Class<?> t = ReflectionUtil.forName(this.owner); Class<?>[] p = ReflectionUtil.toTypeArray(this.types); this.m = t.getMethod(this.name, p); } catch (Exception e) { e.printStackTrace(); } } return this.m; }
Example 9
Source File: MethodExpressionLiteral.java From tomcatsrc with Apache License 2.0 | 5 votes |
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { this.expr = in.readUTF(); String type = in.readUTF(); if (!"".equals(type)) { this.expectedType = ReflectionUtil.forName(type); } this.paramTypes = ReflectionUtil.toTypeArray(((String[]) in .readObject())); }