org.elasticsearch.common.inject.internal
Class MoreTypes.MemberImpl

java.lang.Object
  extended by org.elasticsearch.common.inject.internal.MoreTypes.MemberImpl
All Implemented Interfaces:
Serializable, Member
Enclosing class:
MoreTypes

public static class MoreTypes.MemberImpl
extends Object
implements Member, Serializable

We cannot serialize the built-in Java member classes, which prevents us from using Members in our exception types. We workaround this with this serializable implementation. It includes all of the API methods, plus everything we use for line numbers and messaging.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface java.lang.reflect.Member
DECLARED, PUBLIC
 
Method Summary
 Class getDeclaringClass()
           
 int getModifiers()
           
 String getName()
           
 boolean isSynthetic()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDeclaringClass

public Class getDeclaringClass()
Specified by:
getDeclaringClass in interface Member

getName

public String getName()
Specified by:
getName in interface Member

getModifiers

public int getModifiers()
Specified by:
getModifiers in interface Member

isSynthetic

public boolean isSynthetic()
Specified by:
isSynthetic in interface Member

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012. All Rights Reserved.