本文整理了Java中com.memoire.yapod.YapodLib
类的一些代码示例,展示了YapodLib
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YapodLib
类的具体详情如下:
包路径:com.memoire.yapod.YapodLib
类名称:YapodLib
暂无
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
public static final Field getField(Class _class, String _name)
{
Field[] f=getAllFields(_class);
for(int i=f.length-1; i>=0; i--)
if(f[i].getName().equals(_name))
return f[i];
return null;
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
public static final Field[] getAllFields(Class _class)
{
Vector v=new Vector();
getFields0(_class,v);
int l=v.size();
Field[] r=new Field[l];
for(int i=0;i<l;i++)
r[i]=(Field)v.elementAt(i);
return r;
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
protected Object compute(Object _object)
{
YapodAssoc r=new YapodAssoc();
Field[] fields=YapodLib.getAllFields(_object.getClass());
for(int i=0;i<fields.length;i++)
{
String k=fields[i].getName();
Object v=YapodLib.getValue(_object,k);
r.put(k,v);
}
return r;
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
public static final Object[] toArray(Enumeration _e)
{
return toArray(toVector(_e));
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
Field[] fields=YapodLib.getAllFields(c);
for(int i=0;i<fields.length;i++)
if(!YapodLib.isValid(fields[i])) break;
try
YapodLib.setAccessible(fields[i],true);
__graph0(fields[i].get(_o),_table);
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
if(!YapodLib.isValid(_f)) return;
YapodLib.setAccessible(_f,true);
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
(new Class[] { });
YapodLib.setAccessible(x,true);
o=x.newInstance(new Object[] { });
trace("##### "+o);
(new Class[] { Integer.TYPE });
YapodLib.setAccessible(x,true);
o=x.newInstance(new Object[] { new Integer(0) });
trace("##### "+o);
Field f=YapodLib.getField(c,name);
YapodLib.setAccessible(f,true);
trace("##### "+f);
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
protected Object compute(Object _object)
{
return YapodLib.getValue(_object,field_);
}
代码示例来源:origin: org.fudaa.framework.dodico/dodico-common
protected void writeField(final Object _o, final Field _f, final Writer _w) throws IOException {
if (!YapodLib.isValid(_f)) {
return;
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
public static final void print(String s,Enumeration e)
{
System.out.print(s);
print(e);
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
public Enumeration getResult()
{
Vector r=new Vector();
for(int i=0;i<q_.length;i++)
// r.addElement(q_[i]);
r.addElement(YapodLib.toVector(q_[i].getResult()));
return r.elements();
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
public Object build() {
Object o = null;
try {
Method m = clazz_.getDeclaredMethod("from_int",
new Class[] {Integer.TYPE});
YapodLib.setAccessible(m, true);
o = m.invoke(null, new Object[] {new Integer(__value)});
}
catch (NoSuchMethodException ex) {}
catch (IllegalAccessException ex) {}
catch (IllegalArgumentException ex) {}
catch (InvocationTargetException ex) {}
return o;
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
private final String fromXmlCharset(String _s)
{
String r=_s;
r=YapodLib.replace(r," "," ");
int i,j;
while((i=r.indexOf("&#"))>=0)
{
j=r.indexOf(";",i);
if(j<0) break;
String s=r.substring(i+2,j);
try
{
String c=""+(char)Integer.parseInt(s);
//System.err.println("S="+s+" --> "+c);
r=YapodLib.replace(r,"&#"+s+";",c);
}
catch(NumberFormatException ex)
{
warning("invalid char value &#"+s+";");
break;
}
}
r=YapodLib.replace(r,"<" ,"<");
r=YapodLib.replace(r,">" ,">");
r=YapodLib.replace(r,""","\"");
r=YapodLib.replace(r,"&","&");
return r;
}
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
Field f=getField(c,_field);
value=f.get(_o);
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
protected void writeField(Object _o, Field _f, StringBuffer _sb)
if(!YapodLib.isValid(_f)) return;
YapodLib.setAccessible(_f,true);
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
Constructor x = c.getDeclaredConstructor(new Class[] {});
YapodLib.setAccessible(x, true);
o = x.newInstance(new Object[] {});
trace(o);
Field f = YapodLib.getField(c, name);
YapodLib.setAccessible(f, true);
trace(f);
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
protected boolean test(Object o)
{
Object v=YapodLib.getValue(o,field_);
if(v==FAKE) v=field_;
if(v==null) v="";
return values_.contains(v);
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
public static void main(String[] args)
{
Vector vect=new Vector();
vect.addElement(new Point(1,1));
vect.addElement(new Point(1,2));
vect.addElement(new Point(2,1));
vect.addElement(new Point(2,2));
YapodQuery q0 = new YapodStaticVectorQuery(vect);
System.out.println("\nq0");
YapodLib.print(q0.getResult());
YapodQuery q1 = new YapodGroupQuery ("x", q0);
System.out.println("\nq1");
YapodLib.print(q1.getResult());
}
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
public Enumeration getResult()
{
if(cache_==null)
cache_=YapodLib.toVector(getPrevious().getResult());
return cache_.elements();
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-fu
YapodLib.setAccessible(x,true);
o=x.newInstance(new Object[] { data_ });
内容来源于网络,如有侵权,请联系作者删除!