com.togethersoft.openapi.sci
Interface SciJavaHelper
- public interface SciJavaHelper
- extends SciLanguageHelper
This inteface contains useful utility Java-only methods.
An instance of SciJavaHelper can be obtained, for example, as follows:
SciJavaHelper jh = (SciJavaHelper)SciModelAccess.getModel().getLanguageHelper(SciLanguage.JAVA)
- Author:
- TogetherSoft
- Since: Together 4.0
- See Also: SciModel.getLanguageHelper(java.lang.String)
| Methods inherited from interface com.togethersoft.openapi.sci.SciLanguageHelper |
allFiles, allFiles, convertMemberQualifiedNameToPresentableForm, convertMemberSignatureToPresentableForm, getComment, getDefaultConstantOfType, getDefaultObjectText, getPresentableLanguageName, getProperty, getShortClassName, inquirePasteName, isPrimitiveType, isPrimitiveType, isValidIdentifier, makePointerType, makeReferenceType, setProperty |
anonymousClasses
public SciClassEnumeration anonymousClasses(SciClass sciClass)
- Returns an enumeration of anonymous classes of the specified class.
- Parameters:
- sciClass - class whose anonymous classes should be returned
- Returns: Enumeration of anonymous classes
getAnonymousClass
public SciClass getAnonymousClass(SciNewExpression expression)
- Retrieve an operand of SciNewExpression that creates an instance of an anonymous class
and represents it as SciClass. Note that this SciClass, unlike classes declared in
the file scope, is not considered as part of the model and has implied usage restrictions.- Returns: SciClass instance representing argument of new instance expression
- Since:
- Together 5.0
getCompiledName
public String getCompiledName(SciClass anonymousClass)
- This operations allows to inquire the name of anonymous classes after compilation of corresponding source file.
initializers
public SciInitializerEnumeration initializers(SciClass sciClass)
- Returns an enumeration of class/instance initializers that the specified class has.
- Returns: an enumeration of class/instance initializers of the specified class