public abstract class AbstractJavaSourceMemberHolder<O extends JavaSource<O>> extends AbstractJavaSource<O> implements MethodHolder<O>, FieldHolder<O>
body, document, enclosingType, loader, unit| Constructor and Description |
|---|
AbstractJavaSourceMemberHolder(JavaSource<?> enclosingType,
org.eclipse.jface.text.Document document,
org.eclipse.jdt.core.dom.CompilationUnit unit,
org.eclipse.jdt.core.dom.BodyDeclaration declaration) |
| Modifier and Type | Method and Description |
|---|---|
Field<O> |
addField() |
Field<O> |
addField(String declaration) |
Method<O> |
addMethod() |
Method<O> |
addMethod(String method) |
Field<O> |
getField(String name) |
List<Field<O>> |
getFields() |
List<Member<O,?>> |
getMembers() |
Method<O> |
getMethod(String name) |
Method<O> |
getMethod(String name,
Class<?>... paramTypes) |
Method<O> |
getMethod(String name,
String... paramTypes) |
List<Method<O>> |
getMethods() |
boolean |
hasField(Field<O> field) |
boolean |
hasField(String name) |
boolean |
hasMethod(Method<O> method) |
boolean |
hasMethodSignature(Method<?> method) |
boolean |
hasMethodSignature(String name) |
boolean |
hasMethodSignature(String name,
Class<?>... paramTypes) |
boolean |
hasMethodSignature(String name,
String... paramTypes) |
O |
removeField(Field<O> field) |
O |
removeMethod(Method<O> method) |
addAnnotation, addAnnotation, addAnnotation, addImport, addImport, addImport, addImport, addInterface, addInterface, addInterface, equals, getAnnotation, getAnnotation, getAnnotations, getBodyDeclaration, getCanonicalName, getEnclosingType, getImport, getImport, getImport, getImport, getImports, getInterfaces, getInternal, getName, getNestedClasses, getOrigin, getPackage, getQualifiedName, getSyntaxErrors, getVisibility, hasAnnotation, hasAnnotation, hashCode, hasImport, hasImport, hasImport, hasImport, hasInterface, hasInterface, hasInterface, hasSyntaxErrors, isAnnotation, isClass, isDefaultPackage, isEnum, isInterface, isPackagePrivate, isPrivate, isProtected, isPublic, removeAnnotation, removeImport, removeImport, removeImport, removeImport, removeInterface, removeInterface, removeInterface, requiresImport, requiresImport, resolveType, setDefaultPackage, setName, setPackage, setPackagePrivate, setPrivate, setProtected, setPublic, setVisibility, toString, updateTypeNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSourceTypepublic AbstractJavaSourceMemberHolder(JavaSource<?> enclosingType, org.eclipse.jface.text.Document document, org.eclipse.jdt.core.dom.CompilationUnit unit, org.eclipse.jdt.core.dom.BodyDeclaration declaration)
public Field<O> addField()
addField in interface FieldHolder<O extends JavaSource<O>>public Field<O> addField(String declaration)
addField in interface FieldHolder<O extends JavaSource<O>>public List<Member<O,?>> getMembers()
getMembers in interface MemberHolder<O extends JavaSource<O>,Member>getMembers in class AbstractJavaSource<O extends JavaSource<O>>public List<Field<O>> getFields()
getFields in interface FieldHolder<O extends JavaSource<O>>public Field<O> getField(String name)
getField in interface FieldHolder<O extends JavaSource<O>>public boolean hasField(String name)
hasField in interface FieldHolder<O extends JavaSource<O>>public boolean hasField(Field<O> field)
hasField in interface FieldHolder<O extends JavaSource<O>>public O removeField(Field<O> field)
removeField in interface FieldHolder<O extends JavaSource<O>>public boolean hasMethod(Method<O> method)
hasMethod in interface MethodHolder<O extends JavaSource<O>>public boolean hasMethodSignature(String name)
hasMethodSignature in interface MethodHolder<O extends JavaSource<O>>public boolean hasMethodSignature(String name, String... paramTypes)
hasMethodSignature in interface MethodHolder<O extends JavaSource<O>>public boolean hasMethodSignature(String name, Class<?>... paramTypes)
hasMethodSignature in interface MethodHolder<O extends JavaSource<O>>public Method<O> getMethod(String name)
getMethod in interface MethodHolder<O extends JavaSource<O>>public Method<O> getMethod(String name, String... paramTypes)
getMethod in interface MethodHolder<O extends JavaSource<O>>public Method<O> getMethod(String name, Class<?>... paramTypes)
getMethod in interface MethodHolder<O extends JavaSource<O>>public boolean hasMethodSignature(Method<?> method)
hasMethodSignature in interface MethodHolder<O extends JavaSource<O>>public O removeMethod(Method<O> method)
removeMethod in interface MethodHolder<O extends JavaSource<O>>public Method<O> addMethod()
addMethod in interface MethodHolder<O extends JavaSource<O>>public Method<O> addMethod(String method)
addMethod in interface MethodHolder<O extends JavaSource<O>>public List<Method<O>> getMethods()
getMethods in interface MethodHolder<O extends JavaSource<O>>Copyright © 2013 JBoss by Red Hat. All Rights Reserved.