@Beta public interface RegisterGlobalsContext extends FileSystemSupport, FileLocations, UpstreamTypeLookup, SourceTypeLookup
RegisterGlobalsParticipant| Modifier and Type | Method and Description |
|---|---|
void |
registerAnnotationType(java.lang.String qualifiedName)
Registers and creates an empty Java annotation type with given qualified name
If the name's namespace part refers to another derived Java type, this type will become a static member of that type.
|
void |
registerClass(java.lang.String qualifiedName)
Registers and creates an empty Java class with given qualified name
If the name's namespace part refers to another derived Java type, this type will become a static member of that type.
|
void |
registerEnumerationType(java.lang.String qualifiedName)
Registers and creates an empty Java enumeration type with given qualified name
If the name's namespace part refers to another derived Java type, this type will become a static member of that type.
|
void |
registerInterface(java.lang.String qualifiedName)
Registers and creates an empty Java interface with given qualified name
If the name's namespace part refers to another derived Java type, this type will become a static member of that type.
|
exists, getCharset, getChildren, getContents, getContentsAsStream, getLastModification, isFile, isFolder, toURIgetProjectFolder, getProjectSourceFolders, getSourceFolder, getTargetFolderfindUpstreamType, findUpstreamTypefindSourceAnnotationType, findSourceClass, findSourceEnumerationType, findSourceInterfacevoid registerClass(java.lang.String qualifiedName)
throws java.lang.IllegalArgumentException
// creates a type 'MyClass' in the package 'my.pack'
registerClass("my.pack.MyClass")
// creates a type 'MyInnerClass' as a member of the type 'my.pack.MyClass'
registerClass("my.pack.MyClass.MyInnerClass")
qualifiedName - java.lang.IllegalArgumentException - if the qualifiedName conflicts with any existing types.java.lang.IllegalArgumentException - if the qualifiedName is not a valid qualified namevoid registerInterface(java.lang.String qualifiedName)
throws java.lang.IllegalArgumentException
// creates a type 'MyClass' in the package 'my.pack'
registerClass("my.pack.MyClass")
// creates a type 'MyInnerClass' as a member of the type 'my.pack.MyClass'
registerClass("my.pack.MyClass.MyInnerClass")
qualifiedName - java.lang.IllegalArgumentException - if the qualifiedName conflicts with any existing types.java.lang.IllegalArgumentException - if the qualifiedName is not a valid qualified namevoid registerAnnotationType(java.lang.String qualifiedName)
throws java.lang.IllegalArgumentException
// creates a type 'MyClass' in the package 'my.pack'
registerClass("my.pack.MyClass")
// creates a type 'MyInnerClass' as a member of the type 'my.pack.MyClass'
registerClass("my.pack.MyClass.MyInnerClass")
qualifiedName - java.lang.IllegalArgumentException - if the qualifiedName conflicts with any existing types.java.lang.IllegalArgumentException - if the qualifiedName is not a valid qualified namevoid registerEnumerationType(java.lang.String qualifiedName)
throws java.lang.IllegalArgumentException
// creates a type 'MyClass' in the package 'my.pack'
registerClass("my.pack.MyClass")
// creates a type 'MyInnerClass' as a member of the type 'my.pack.MyClass'
registerClass("my.pack.MyClass.MyInnerClass")
qualifiedName - java.lang.IllegalArgumentException - if the qualifiedName conflicts with any existing types.java.lang.IllegalArgumentException - if the qualifiedName is not a valid qualified name