/** * Creates a variable, but does not assign it to a scope. If you are trying to * declare a variable, see {@link Stmt#declareVariable(String, MetaClass, Object)}. * * @param name * The variable name * @param type * The variable reference type * @return A newly created variable that is not (yet) referencable. */ public static Variable create(final String name, final MetaClass type, final Object initialization) { return new Variable(name, type, initialization); }
/** * Creates a variable, but does not assign it to a scope. If you are trying to * declare a variable, see {@link Stmt#declareVariable(String, Object)}. * * @param name * The variable name * @param type * The variable reference type * @return A newly created variable that is not (yet) referencable. */ public static Variable create(final String name, final Object initialization) { return new Variable(name, null, initialization); }
/** * Creates a variable, but does not assign it to a scope. If you are trying to * declare a variable, see {@link Stmt#declareVariable(String, MetaClass)}. * * @param name * The variable name * @param type * The variable reference type * @return A newly created variable that is not (yet) referencable. */ public static Variable create(final String name, final MetaClass type) { return new Variable(name, type); }
/** * Creates a variable, but does not assign it to a scope. If you are trying to * declare a variable, see {@link Stmt#declareVariable(String, MetaClass)}. * * @param name * The variable name * @param type * The variable reference type * @return A newly created variable that is not (yet) referencable. */ public static Variable create(final String name, final MetaClass type) { return new Variable(name, type); }
/** * Creates a variable, but does not assign it to a scope. If you are trying to * declare a variable, see {@link Stmt#declareVariable(String, Object)}. * * @param name * The variable name * @param type * The variable reference type * @return A newly created variable that is not (yet) referencable. */ public static Variable create(final String name, final Object initialization) { return new Variable(name, null, initialization); }
/** * Creates a variable, but does not assign it to a scope. If you are trying to * declare a variable, see {@link Stmt#declareVariable(String, MetaClass, Object)}. * * @param name * The variable name * @param type * The variable reference type * @return A newly created variable that is not (yet) referencable. */ public static Variable create(final String name, final MetaClass type, final Object initialization) { return new Variable(name, type, initialization); }
/** * Creates a variable, but does not assign it to a scope. If you are trying to * declare a variable, see {@link Stmt#declareVariable(String, Class)}. * * @param name * The variable name * @param type * The variable reference type * @return A newly created variable that is not (yet) referencable. */ public static Variable create(final String name, final Class<?> type) { return new Variable(name, MetaClassFactory.get(type)); }
/** * Creates a variable, but does not assign it to a scope. If you are trying to * declare a variable, see {@link Stmt#declareVariable(String, Class, Object)}. * * @param name * The variable name * @param type * The variable reference type * @return A newly created variable that is not (yet) referencable. */ public static Variable create(final String name, final Class<?> type, final Object initialization) { return new Variable(name, MetaClassFactory.get(type), initialization); }
/** * Creates a variable, but does not assign it to a scope. If you are trying to * declare a variable, see {@link Stmt#declareVariable(String, Class)}. * * @param name * The variable name * @param type * The variable reference type * @return A newly created variable that is not (yet) referencable. */ public static Variable create(final String name, final Class<?> type) { return new Variable(name, MetaClassFactory.get(type)); }
/** * Creates a variable, but does not assign it to a scope. If you are trying to * declare a variable, see {@link Stmt#declareVariable(String, TypeLiteral)}. * * @param name * The variable name * @param type * The variable reference type * @return A newly created variable that is not (yet) referencable. */ public static Variable create(final String name, final TypeLiteral<?> type) { return new Variable(name, MetaClassFactory.get(type)); }
/** * Creates a variable, but does not assign it to a scope. If you are trying to * declare a variable, see {@link Stmt#declareVariable(String, Class, Object)}. * * @param name * The variable name * @param type * The variable reference type * @return A newly created variable that is not (yet) referencable. */ public static Variable create(final String name, final Class<?> type, final Object initialization) { return new Variable(name, MetaClassFactory.get(type), initialization); }
/** * Creates a variable, but does not assign it to a scope. If you are trying to * declare a variable, see {@link Stmt#declareVariable(String, TypeLiteral)}. * * @param name * The variable name * @param type * The variable reference type * @return A newly created variable that is not (yet) referencable. */ public static Variable create(final String name, final TypeLiteral<?> type) { return new Variable(name, MetaClassFactory.get(type)); }
/** * Creates a variable, but does not assign it to a scope. If you are trying to * declare a variable, see {@link Stmt#declareVariable(String, TypeLiteral, Object)}. * * @param name * The variable name * @param type * The variable reference type * @return A newly created variable that is not (yet) referencable. */ public static Variable create(final String name, final TypeLiteral<?> type, final Object initialization) { return new Variable(name, MetaClassFactory.get(type), initialization); }
/** * Creates a variable, but does not assign it to a scope. If you are trying to * declare a variable, see {@link Stmt#declareVariable(String, TypeLiteral, Object)}. * * @param name * The variable name * @param type * The variable reference type * @return A newly created variable that is not (yet) referencable. */ public static Variable create(final String name, final TypeLiteral<?> type, final Object initialization) { return new Variable(name, MetaClassFactory.get(type), initialization); }
public static Variable from(final VariableReference ref) { return new Variable(ref.getName(), ref.getType()); }
public static Variable from(final VariableReference ref) { return new Variable(ref.getName(), ref.getType()); }