public interface IFunctionContainer
IJavaScriptUnit
or an IType
).
This interface is not intended to be implemented by clients.
Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Modifier and Type | Method and Description |
---|---|
IField |
getField(java.lang.String name)
Returns the field with the specified name
in this type (for example,
"bar" ). |
IField[] |
getFields()
Returns the fields declared by this type or javascript file.
|
IFunction |
getFunction(java.lang.String name,
java.lang.String[] parameterTypeSignatures)
Returns the method with the specified name and parameter types
in this type (for example,
"foo", {"I", "QString;"} ). |
IFunction[] |
getFunctions()
Returns the methods and constructors declared by this type or file.
|
IType |
getType(java.lang.String name)
Returns the type with the specified name
|
IField getField(java.lang.String name)
"bar"
).
This is a handle-only method. The field may or may not exist.name
- the given nameIField[] getFields() throws JavaScriptModelException
JavaScriptModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resource.IFunction getFunction(java.lang.String name, java.lang.String[] parameterTypeSignatures)
"foo", {"I", "QString;"}
).
To get the handle for a constructor, the name specified must be the
simple name of the enclosing type.
This is a handle-only method. The method may or may not be present.
The type signatures may be either unresolved (for source types)
or resolved (for binary types), and either basic (for basic types)
or rich (for parameterized types). See Signature
for details.
name
- the given nameparameterTypeSignatures
- the given parameter typesIFunction[] getFunctions() throws JavaScriptModelException
JavaScriptModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resource.IType getType(java.lang.String name)
JavaScriptModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resource.Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.