/** */ public final String getRelativeName() { return _componentType.getRelativeName() + "[]"; }
/** */ public String getName() { return _type.getRelativeName(); }
/** */ public final String getRelativeName() { return _componentType.getRelativeName() + "[]"; }
@Override public String getRelativeName() { return _type.getRelativeName(); }
@Override public int compare(IType o1, IType o2) { return o1.getRelativeName().compareTo(o2.getRelativeName()); } };
@Override public String getDisplayName() { return getOwnersType().getRelativeName(); }
public String getName() { return getType().getRelativeName(); }
@Override public String getDisplayName() { return getOwnersType().getRelativeName(); }
@Override public String getRelativeName() { if( _strRelativeName == null ) { _strRelativeName = isGenericType() || isDefault() ? "Type" : "Type<" + _type.getRelativeName() + ">"; } return _strRelativeName; }
private boolean hasDoNotVerifyAnnotation(IGosuClass gsClass) { for (IAnnotationInfo ai : gsClass.getTypeInfo().getAnnotations()) { if (ai.getType().getRelativeName().equals("DoNotVerifyResource")) { return true; } } return false; }
private boolean hasDoNotVerifyAnnotation(IGosuClass gsClass) { for (IAnnotationInfo ai : gsClass.getTypeInfo().getAnnotations()) { if (ai.getType().getRelativeName().equals("DoNotVerifyResource")) { return true; } } return false; }
public static IRType get(IType type) { if (type instanceof IGosuClassInternal || type instanceof IGosuArrayClass) { return GosuClassIRType.get(type); } else if (type instanceof GosuFragment) { return new SyntheticIRType( FragmentInstance.class, type.getName(), type.getRelativeName()); } else if (type instanceof IJavaType) { return JavaClassIRType.get(((IJavaType) type).getBackingClassInfo()); } else { throw new IllegalArgumentException("Cannot create an IRType for " + type.getClass()); } } }
/** This will unmarshal the element, provided it is exportable * * @param el the element to unmarshal * @param type the expected type * @return the value */ public static Object unmarshal(XmlElement el, IType type) { if (!type.getTypeInfo().hasAnnotation(ExportableMarshalInfo._exportAnnoType.get())) { throw new IllegalArgumentException(type.getRelativeName() + " is not exportable"); } return gw.internal.xml.config.XmlServices.unmarshal(type, el, new UnmarshalContext(null)); }
public String getNameWithBounds( boolean bRelative ) { return _boundingType == JavaTypes.OBJECT() ? getName() : (getName() + " " + Keyword.KW_extends + " " + (bRelative ? _boundingType.getRelativeName() : _boundingType.getName())); }
private static String makeJavaName( IType type ) { IType enclosingType = type.getEnclosingType(); if( enclosingType != null ) { return makeJavaName( enclosingType ) + '$' + getSimpleName( type.getRelativeName() ); } return type.getName(); }
@Override public String getRelativeName() { BeanDescriptor bd = _beanInfo.get().getBeanDescriptor(); return bd != null ? bd.getName() : getJavaType().getRelativeName(); }
default String getJavaName() { IType type = TypeSystem.getPureGenericType( this ); IType outerType = type.getEnclosingType(); if( outerType instanceof IFileRepositoryBasedType ) { return ((IFileRepositoryBasedType)outerType).getJavaName() + "$" + type.getRelativeName(); } return type.getName(); } }
private boolean isParsingConstructor() { if( !isParsingFunction() ) { return false; } FunctionType funcType = peekParsingFunction(); return funcType.getReturnType() == getGosuClass() && funcType.getName().equals( funcType.getReturnType().getRelativeName() ); }
private boolean isParsingConstructor() { if( !isParsingFunction() ) { return false; } FunctionType funcType = peekParsingFunction(); return funcType.getReturnType() == getGosuClass() && funcType.getName().equals( funcType.getReturnType().getRelativeName() ); }
public IRunConfig getOrCreateRunConfig( IType type ) { String fqn = type.getName(); IRunConfig rc = findRunConfig( runConfig -> runConfig instanceof FqnRunConfig && ((FqnRunConfig)runConfig).getFqn().equals( fqn ) ); return rc == null ? EditorUtilities.isRunnable( type ) ? ProgramRunConfigFactory.instance().newRunConfig( makeProgramParams( type.getRelativeName(), type.getName() ) ) : null : rc; }