public abstract class AbstractJavaSourceMemberHolder<O extends JavaSource<O> & PropertyHolderSource<O>> extends AbstractJavaSource<O> implements InterfaceCapableSource<O>, PropertyHolderSource<O>
body, document, enclosingType, unit| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJavaSourceMemberHolder(JavaSource<?> enclosingType,
org.eclipse.jface.text.Document document,
org.eclipse.jdt.core.dom.CompilationUnit unit,
org.eclipse.jdt.core.dom.BodyDeclaration declaration) |
addAnnotation, addAnnotation, addAnnotation, addImport, addImport, addImport, addImport, addImport, addNestedType, addNestedType, addNestedType, equals, getAnnotation, getAnnotation, getAnnotations, getBodyDeclaration, getCanonicalName, getEnclosingType, getImport, getImport, getImport, getImport, getImports, getInternal, getJavaDoc, getName, getNestedType, getNestedTypes, getOrigin, getPackage, getQualifiedName, getSyntaxErrors, getVisibility, hasAnnotation, hasAnnotation, hashCode, hasImport, hasImport, hasImport, hasImport, hasJavaDoc, hasNestedType, hasNestedType, hasNestedType, hasSyntaxErrors, isAnnotation, isClass, isDefaultPackage, isEnum, isInterface, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, removeAllAnnotations, removeAnnotation, removeImport, removeImport, removeImport, removeImport, removeJavaDoc, removeNestedType, requiresImport, requiresImport, resolveType, setDefaultPackage, setName, setPackage, setPackagePrivate, setPrivate, setProtected, setPublic, setStatic, setVisibility, toString, toUnformattedString, updateTypeNamesprotected AbstractJavaSourceMemberHolder(JavaSource<?> enclosingType, org.eclipse.jface.text.Document document, org.eclipse.jdt.core.dom.CompilationUnit unit, org.eclipse.jdt.core.dom.BodyDeclaration declaration)
public FieldSource<O> addField()
addField in interface FieldHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public FieldSource<O> addField(String declaration)
addField in interface FieldHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public List<MemberSource<O,?>> getMembers()
getMembers in interface MemberHolder<O extends JavaSource<O> & PropertyHolderSource<O>>getMembers in interface MemberHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public List<FieldSource<O>> getFields()
getFields in interface FieldHolder<O extends JavaSource<O> & PropertyHolderSource<O>>getFields in interface FieldHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public FieldSource<O> getField(String name)
getField in interface FieldHolder<O extends JavaSource<O> & PropertyHolderSource<O>>getField in interface FieldHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public boolean hasField(String name)
hasField in interface FieldHolder<O extends JavaSource<O> & PropertyHolderSource<O>>public boolean hasField(Field<O> field)
hasField in interface FieldHolder<O extends JavaSource<O> & PropertyHolderSource<O>>public O removeField(Field<O> field)
removeField in interface FieldHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public boolean hasMethod(Method<O,?> method)
hasMethod in interface MethodHolder<O extends JavaSource<O> & PropertyHolderSource<O>>public boolean hasMethodSignature(String name)
hasMethodSignature in interface MethodHolder<O extends JavaSource<O> & PropertyHolderSource<O>>public boolean hasMethodSignature(String name, String... paramTypes)
hasMethodSignature in interface MethodHolder<O extends JavaSource<O> & PropertyHolderSource<O>>public boolean hasMethodSignature(String name, Class<?>... paramTypes)
hasMethodSignature in interface MethodHolder<O extends JavaSource<O> & PropertyHolderSource<O>>public MethodSource<O> getMethod(String name)
getMethod in interface MethodHolder<O extends JavaSource<O> & PropertyHolderSource<O>>getMethod in interface MethodHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public MethodSource<O> getMethod(String name, String... paramTypes)
getMethod in interface MethodHolder<O extends JavaSource<O> & PropertyHolderSource<O>>getMethod in interface MethodHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public MethodSource<O> getMethod(String name, Class<?>... paramTypes)
getMethod in interface MethodHolder<O extends JavaSource<O> & PropertyHolderSource<O>>getMethod in interface MethodHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public boolean hasMethodSignature(Method<?,?> method)
hasMethodSignature in interface MethodHolder<O extends JavaSource<O> & PropertyHolderSource<O>>public O removeMethod(Method<O,?> method)
removeMethod in interface MethodHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public MethodSource<O> addMethod()
addMethod in interface MethodHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public MethodSource<O> addMethod(String method)
addMethod in interface MethodHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public MethodSource<O> addMethod(Method method)
addMethod in interface MethodHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public MethodSource<O> addMethod(Method<?,?> method)
addMethod in interface MethodHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public List<MethodSource<O>> getMethods()
getMethods in interface MethodHolder<O extends JavaSource<O> & PropertyHolderSource<O>>getMethods in interface MethodHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public List<String> getInterfaces()
getInterfaces in interface InterfaceCapablepublic O addInterface(String type)
addInterface in interface InterfaceCapableSource<O extends JavaSource<O> & PropertyHolderSource<O>>public O addInterface(Class<?> type)
addInterface in interface InterfaceCapableSource<O extends JavaSource<O> & PropertyHolderSource<O>>public O implementInterface(Class<?> type)
implementInterface in interface InterfaceCapableSource<O extends JavaSource<O> & PropertyHolderSource<O>>public O implementInterface(JavaInterface<?> type)
implementInterface in interface InterfaceCapableSource<O extends JavaSource<O> & PropertyHolderSource<O>>public O addInterface(JavaInterface<?> type)
addInterface in interface InterfaceCapableSource<O extends JavaSource<O> & PropertyHolderSource<O>>public boolean hasInterface(String type)
hasInterface in interface InterfaceCapablepublic boolean hasInterface(Class<?> type)
hasInterface in interface InterfaceCapablepublic boolean hasInterface(JavaInterface<?> type)
hasInterface in interface InterfaceCapablepublic O removeInterface(String type)
removeInterface in interface InterfaceCapableSource<O extends JavaSource<O> & PropertyHolderSource<O>>public O removeInterface(Class<?> type)
removeInterface in interface InterfaceCapableSource<O extends JavaSource<O> & PropertyHolderSource<O>>public O removeInterface(JavaInterface<?> type)
removeInterface in interface InterfaceCapableSource<O extends JavaSource<O> & PropertyHolderSource<O>>public final boolean hasProperty(String name)
hasProperty in interface PropertyHolder<O extends JavaSource<O> & PropertyHolderSource<O>>public final boolean hasProperty(Property<O> property)
hasProperty in interface PropertyHolder<O extends JavaSource<O> & PropertyHolderSource<O>>public final PropertySource<O> addProperty(String type, String name)
addProperty in interface PropertyHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public PropertySource<O> addProperty(Class<?> type, String name)
addProperty in interface PropertyHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public PropertySource<O> addProperty(JavaType<?> type, String name)
addProperty in interface PropertyHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public final AbstractJavaSourceMemberHolder<O> removeProperty(Property<O> property)
removeProperty in interface PropertyHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public final PropertySource<O> getProperty(String name)
getProperty in interface PropertyHolder<O extends JavaSource<O> & PropertyHolderSource<O>>getProperty in interface PropertyHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public final List<PropertySource<O>> getProperties()
getProperties in interface PropertyHolder<O extends JavaSource<O> & PropertyHolderSource<O>>getProperties in interface PropertyHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>public List<PropertySource<O>> getProperties(Class<?> type)
getProperties in interface PropertyHolder<O extends JavaSource<O> & PropertyHolderSource<O>>getProperties in interface PropertyHolderSource<O extends JavaSource<O> & PropertyHolderSource<O>>Copyright © 2017 JBoss by Red Hat. All rights reserved.