1 29 30 package com.caucho.bytecode; 31 32 35 abstract public class JField extends JAccessibleObject { 36 39 abstract public String getName(); 40 41 44 abstract public JClass getDeclaringClass(); 45 46 49 abstract public JClass getType(); 50 51 54 public JClass getReturnType() 55 { 56 return getType(); 57 } 58 59 62 abstract public JType getGenericType(); 63 64 67 abstract public boolean isPrivate(); 68 69 72 abstract public boolean isTransient(); 73 74 77 abstract public boolean isStatic(); 78 79 82 public boolean equals(Object o) 83 { 84 if (o == this) 85 return true; 86 else if (o == null || getClass() != o.getClass()) 87 return false; 88 89 JField jField = (JField) o; 90 91 return getName().equals(jField.getName()); 93 } 94 95 public String toString() 96 { 97 return "JField[" + getName() + "]"; 98 } 99 } 100 | Popular Tags |