|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jupe.source.java.JavaSource
public class JavaSource
Field Summary | |
---|---|
static java.lang.String |
javaSourceID
|
Constructor Summary | |
---|---|
JavaSource(org.eclipse.core.resources.IProject project)
|
Method Summary | |
---|---|
void |
checkType(java.lang.String absoluteName)
Causes a propagation of a type from the source to the UML2 model (if it doesn't already exist there). |
org.eclipse.core.resources.IFile |
getClassifierFromSource(java.lang.String absoluteName)
Checks if the given classifier exists in the source code. |
org.eclipse.core.resources.IFolder |
getPackageFromSource(java.lang.String absoluteName)
Checks if the given package exists in the source code. |
org.eclipse.jdt.core.IPackageFragmentRoot |
getSourceFolder()
Get the java source folder where code for the current project gets generation into. |
boolean |
isStringType(java.lang.String absoluteName)
Checks if the given absolute name of a type corresponds to the a String in this language (e.g. java.lang.String in Java). |
java.util.List<ITypeContentProposal> |
resolveType(java.lang.String contents,
int position)
Searches for possible resolutions of the given String to a type name that is in the projects classpath. |
boolean |
typeExists(java.lang.String absoluteName)
Checks whether a type exists in the source code or included libraries. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String javaSourceID
Constructor Detail |
---|
public JavaSource(org.eclipse.core.resources.IProject project)
Method Detail |
---|
public org.eclipse.core.resources.IFolder getPackageFromSource(java.lang.String absoluteName)
ISource
getPackageFromSource
in interface ISource
absoluteName
- The absolute name if the package..
public org.eclipse.core.resources.IFile getClassifierFromSource(java.lang.String absoluteName)
ISource
getClassifierFromSource
in interface ISource
absoluteName
- The absolute name if the classifier.
public void checkType(java.lang.String absoluteName)
ISource
checkType
in interface ISource
absoluteName
- The absolute name of the type that should be propagated to the
UML2 model.public org.eclipse.jdt.core.IPackageFragmentRoot getSourceFolder()
public boolean typeExists(java.lang.String absoluteName)
ISource
typeExists
in interface ISource
absoluteName
- The type that should be tested.
public java.util.List<ITypeContentProposal> resolveType(java.lang.String contents, int position)
ISource
resolveType
in interface ISource
contents
- The beginning of a type name.position
- The current cursor position in the String.
public boolean isStringType(java.lang.String absoluteName)
ISource
isStringType
in interface ISource
absoluteName
- Absolute name of a type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |