Method getClass()
Return type:
java.lang.Class
<Class<? extends Object>>
Member of:
java.lang.Object
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
private String dClassName = this.getClass().getName();
2
public String toString() { return getClass().getName(); }
3
private Preferences prefs=Preferences.userNodeForPackage(getClass());
4
return obj.getClass().isArray();
5
return getClass().getName();
6
return o != null && o.getClass().isArray();
7
return getClass().hashCode();
8
return getClass().getName();
9
URL location = getClass().getResource(name);
10
throw new UnsupportedOperationException( getClass().getName() );
11
return getClass().getResource(resource).toExternalForm();
12
return getClass().equals(obj.getClass());
13
return getClass().isInstance( object );
14
return (AbstractFileRepository) getClass().newInstance();
15
if (op1.getClass() == Long.class || op2.getClass() == Long.class)
16
c.getClass().getMethod(event, new Class[] { type }).invoke(c, new Object[] { propertyHandler });
17
return this.getClass().getPackage().getName();
18
return getClass().getResource(name);
19
return this.getClass();
20
java.beans.Beans.instantiate(this.getClass().getClassLoader(), TestBean.class.getName());
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.