Пример #1
0
 internal ReferenceBTValue(BTType btType)
 {
     this.next   = null;
     this.types  = new ArrayList();
     this.btType = btType;
     this.flds   = new Hashtable();
     this.crtrs  = new Creators();
 }
Пример #2
0
        public static BTType[] GetObjectFieldBTTypes(NewObject upNode)
        {
            ReferenceBTValue obj = AnnotatingVisitor.GetNewBTValue(upNode);
            FieldInfo[] fldInfos = ReflectionUtils.GetAllFields(upNode.Constructor.DeclaringType);
            BTType[] btTypes = new BTType[fldInfos.Length];
            for (int i = 0; i < btTypes.Length; i++)
                btTypes[i] = obj[fldInfos[i]].BTType;

            return btTypes;
        }
Пример #3
0
 internal override Creators Lift()
 {
     if (this.btType == BTType.Static)
     {
         this.btType = BTType.Dynamic;
         return(this.crtrs);
     }
     else
     {
         return(new Creators());
     }
 }
Пример #4
0
 private Creators lift()
 {
     if (this.btType == BTType.Static)
     {
         this.btType = BTType.Dynamic;
         this.flds.Clear();
         return(this.crtrs);
     }
     else
     {
         return(new Creators());
     }
 }
Пример #5
0
 private Creators lift()
 {
     if (this.btType == BTType.Static)
     {
         this.btType = BTType.Dynamic;
         this.flds.Clear();
         return this.crtrs;
     }
     else
         return new Creators();
 }
Пример #6
0
 internal static ReferenceBTValue NewReferenceBTValue(Type type, BTType btType)
 {
     return type == typeof(void) ? null : new ReferenceBTValue(btType);
 }
Пример #7
0
 internal ReferenceBTValue(Type type, BTType btType)
 {
     this.next = null;
     this.types = new ArrayList();
     this.addType(type);
     this.btType = btType;
     this.flds = new Hashtable();
     this.crtrs = new Creators();
 }
Пример #8
0
 internal override Creators Lift()
 {
     if (this.btType == BTType.Static)
     {
         this.btType = BTType.Dynamic;
         return this.crtrs;
     }
     else
         return new Creators();
 }
Пример #9
0
 internal PrimitiveBTValue(BTType btType)
 {
     this.btType = btType;
     this.crtrs = new Creators();
 }
Пример #10
0
 internal NBTValue(BTType btType)
 {
     this.next = null;
     this.types = new ArrayList();
     this.btType = btType;
     this.flds = new Hashtable();
     this.crtrs = new Creators();
 }
Пример #11
0
 internal static void SetNodeBTType(Node upNode, BTType btType)
 {
     upNode.Options["BTType"] = btType;
 }
Пример #12
0
 internal static ReferenceBTValue NewReferenceBTValue(Type type, BTType btType)
 {
     return(type == typeof(void) ? null : new ReferenceBTValue(btType));
 }
Пример #13
0
 internal PrimitiveBTValue(BTType btType)
 {
     this.btType = btType;
     this.crtrs  = new Creators();
 }