public class AbstractMember<Self extends AbstractMember<Self>> extends Object implements IsMember
| Constructor and Description |
|---|
AbstractMember(SourceService service,
String pkg,
String simple,
int modifiers) |
| Modifier and Type | Method and Description |
|---|---|
protected Self |
addAnnotations(Iterable<IsAnnotation> annos) |
protected char |
classSeparator() |
IsAnnotation |
getAnnotation(String name) |
Iterable<IsAnnotation> |
getAnnotations() |
String |
getEnclosedName() |
IsType |
getEnclosingType()
This method is final to remind you to always call setEnclosingType();
A class may be enclosed by an IsClass or IsMethod,
while an IsMethod or IsField will always be enclosed by IsClass.
|
int |
getModifier() |
String |
getPackage() |
String |
getQualifiedName() |
protected SourceService |
getService() |
String |
getSimpleName() |
boolean |
hasModifier(int modifier) |
boolean |
isAbstract() |
boolean |
isFinal() |
boolean |
isPackageProtected() |
boolean |
isPrimitive() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
protected Self |
makeAbstract(boolean add) |
protected Self |
makeFinal(boolean add) |
protected Self |
makePackageProtected() |
protected Self |
makePrivate() |
protected Self |
makeProtected() |
protected Self |
makePublic() |
protected Self |
makeStatic(boolean add) |
protected <T> Fifo<T> |
newFifo() |
protected char |
packageSeparator() |
protected Self |
setEnclosingType(IsType enclosing) |
protected Self |
setPackage(String pkg) |
protected Self |
setProtection(HasModifier protect) |
protected Self |
setSimpleName(String simpleName) |
String |
toSignature() |
String |
toString() |
public AbstractMember(SourceService service, String pkg, String simple, int modifiers)
protected SourceService getService()
protected <T> Fifo<T> newFifo()
public boolean isPrimitive()
isPrimitive in interface IsTypepublic final IsType getEnclosingType()
getEnclosingType in interface IsTypepublic String getPackage()
getPackage in interface HasQualifiedNamepublic String getSimpleName()
getSimpleName in interface HasQualifiedNamepublic String getEnclosedName()
getEnclosedName in interface HasQualifiedNamepublic String getQualifiedName()
getQualifiedName in interface HasQualifiedNameHasQualifiedName.getPackage() + "." + HasQualifiedName.getEnclosedName()protected char classSeparator()
protected char packageSeparator()
public Iterable<IsAnnotation> getAnnotations()
getAnnotations in interface HasAnnotationspublic IsAnnotation getAnnotation(String name)
getAnnotation in interface HasAnnotationspublic boolean isPublic()
isPublic in interface HasProtectionpublic boolean isPrivate()
isPrivate in interface HasProtectionpublic boolean isProtected()
isProtected in interface HasProtectionpublic boolean isPackageProtected()
isPackageProtected in interface HasProtectionpublic boolean isAbstract()
public boolean isFinal()
public boolean isStatic()
protected Self addAnnotations(Iterable<IsAnnotation> annos)
protected Self makePublic()
protected Self makePrivate()
protected Self makeProtected()
protected Self makePackageProtected()
protected Self setProtection(HasModifier protect)
protected Self makeAbstract(boolean add)
protected Self makeFinal(boolean add)
protected Self makeStatic(boolean add)
public boolean hasModifier(int modifier)
hasModifier in interface HasModifierpublic int getModifier()
getModifier in interface HasModifierpublic String toSignature()
toSignature in interface HasSignatureCopyright © December 07, 2012–2015 The Internet Party. All rights reserved.