Exemple #1
0
 public void LinkTo(IJavaType owner)
 {
     if (null != FieldType) { throw new InvalidOperationException(); }
     OwningType = owner;
     ((BaseClassDefinition)owner).RegisterField(this);
     return;
 }
Exemple #2
0
 public Field(IJavaType owningType, IJavaType type, string name)
 {
     OwningType = owningType;
     Name = name;
     FieldType = type;
     return;
 }
Exemple #3
0
 public Prototype(IJavaType returnType, string shortDescriptor,
     List<IJavaType> parametersType)
 {
     ReturnType = returnType;
     ShortDescriptor = shortDescriptor;
     ParametersType = parametersType;
     return;
 }
Exemple #4
0
 public Method(IJavaType owningtype, string methodName, Prototype methodPrototype)
 {
     OwningType = owningtype;
     // Helpers.GetUndecoratedClassName(className);
     Name = methodName;
     Prototype = methodPrototype;
     DebugId = NextDebugId++;
     return;
 }
Exemple #5
0
 public void LinkTo(IJavaType owner)
 {
     if (null != OwningType) { throw new InvalidOperationException(); }
     OwningType = owner;
     return;
 }
Exemple #6
0
 internal void SetDefinition(IJavaType value)
 {
     if (null != Definition) { throw new InvalidOperationException(); }
     Definition = value;
     return;
 }
 public virtual void SetBaseClass(IJavaType value)
 {
     if (null != _superClass) { throw new InvalidOperationException(); }
     if (null == value) { throw new ArgumentNullException(); }
     _superClass = value;
     // Consider checking that super class name matches the name
     // of the value.
     _superClassName = null;
     return;
 }
 public virtual void SetBaseClass(string name)
 {
     if (null != _superClass) { throw new InvalidOperationException(); }
     if (null != _superClassName) { throw new InvalidOperationException(); }
     if (string.IsNullOrEmpty(name)) { throw new ArgumentNullException(); }
     if (ObjectClassName == name) { _superClass = this; }
     if ("ArrayAdapter" == name) { int i = 1; }
     _superClassName = name;
     return;
 }
Exemple #9
0
 private static string BuildCanonicalName(IJavaType indexedType)
 {
     if (null == indexedType) { throw new ArgumentNullException(); }
     StringBuilder builder = new StringBuilder(indexedType.FullyQualifiedBinaryName);
     return builder.Insert(('L' == builder[0]) ? 1 : 0, '[').ToString();
 }