|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IClassManager
Performs remote operations on a JVM and retains references for obtaining remote classes and objects.
Method Summary | |
---|---|
void |
addClassManagerListener(IClassManagerListener listener)
|
void |
associateProject(org.eclipse.jdt.core.IJavaProject javaProject)
Associates this manager with a given java project. |
void |
disassociateProject()
Removes any given association with any project. |
void |
dispose()
Clears up any resources held by the class manager. |
org.eclipse.jdt.core.IJavaProject |
getAssociatedProject()
Retrieves the associated project, if one exists. |
IClass |
getClass(java.lang.String name)
Retrieves a class with the given name. |
boolean |
isDirty()
States whether the underlying class structure may be out of sync with the class manager. |
boolean |
isValid()
States whether the manager is currently associated with a project. |
IObject |
performAdditionOperation(IObject left,
IObject right)
Performs left + right . |
IObject |
performAlgebraicNegationOperation(IObject operand)
Performs -operand . |
IObject |
performBooleanNegationOperation(IObject operand)
Performs !operand . |
IObject |
performDivisionOperation(IObject left,
IObject right)
Performs left / right . |
IObject |
performModulusOperation(IObject left,
IObject right)
Performs left % right . |
IObject |
performMultiplicationOperation(IObject left,
IObject right)
Performs left * right . |
IObject |
performOperation(IOperation op,
IObject[] args)
performs the given operation with the given arguments. |
IObject |
performSubtractionOperation(IObject left,
IObject right)
Performs left - right . |
void |
removeClassManagerListener(IClassManagerListener listener)
|
IArray |
resolveArray(IClass type,
IObject[] elements)
Returns an array object using the IArray form. |
IObject |
resolveObject(IClass type,
java.lang.String expression)
Returns an object of type returnType based on the given
expression , if such an expression can resolve to that
returnType. |
IObject |
resolveValue(boolean value)
Returns an IObject representing a primitive boolean value. |
IObject |
resolveValue(char value)
Returns an IObject representing a primitive char value. |
IObject |
resolveValue(double value)
Returns an IObject representing a primitive double value. |
IObject |
resolveValue(int value)
Returns an IObject representing a primitive integer value. |
IObject |
resolveValue(java.lang.String value)
Returns an IObject representing a primitive String value. |
Method Detail |
---|
void addClassManagerListener(IClassManagerListener listener)
void removeClassManagerListener(IClassManagerListener listener)
void associateProject(org.eclipse.jdt.core.IJavaProject javaProject)
javaProject
- the given project, can not be null
.org.eclipse.jdt.core.IJavaProject getAssociatedProject()
boolean isValid()
true
if the manager is currently associated with a
project, false
otherwise.boolean isDirty()
true
if the dirty flag has been set,
false
otherwise.void disassociateProject()
IClass getClass(java.lang.String name) throws java.lang.ClassNotFoundException
name
- the fully-qualified class name. Can also be "int" or another
primitive type.
java.lang.IllegalStateException
- if the manager is not currently associated with a project.
java.lang.ClassNotFoundException
IObject resolveObject(IClass type, java.lang.String expression) throws java.lang.ClassCastException, java.lang.InstantiationException, RemoteException
returnType
based on the given
expression
, if such an expression can resolve to that
returnType.
java.lang.ClassCastException
java.lang.InstantiationException
RemoteException
IArray resolveArray(IClass type, IObject[] elements) throws RemoteException
type
- the type of the arrayelements
- the elements of the array
RemoteException
IObject resolveValue(boolean value)
value
- the boolean value, true
or false
.
IObject resolveValue(int value)
value
- the integer value.
IObject resolveValue(double value)
value
- the double value.
IObject resolveValue(char value)
value
- the char value.
IObject resolveValue(java.lang.String value)
value
- the String value.
IObject performOperation(IOperation op, IObject[] args) throws RemoteException
RemoteException
- if there is an error performing the operation.IObject performAdditionOperation(IObject left, IObject right) throws RemoteException
left + right
.
RemoteException
IObject performSubtractionOperation(IObject left, IObject right) throws RemoteException
left - right
.
RemoteException
IObject performMultiplicationOperation(IObject left, IObject right) throws RemoteException
left * right
.
RemoteException
IObject performDivisionOperation(IObject left, IObject right) throws RemoteException
left / right
.
RemoteException
IObject performModulusOperation(IObject left, IObject right) throws RemoteException
left % right
.
RemoteException
IObject performAlgebraicNegationOperation(IObject operand) throws RemoteException
-operand
.
RemoteException
IObject performBooleanNegationOperation(IObject operand) throws RemoteException
!operand
.
RemoteException
void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |